home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Information / Digests / MacScripting Digest / The Digests / mac-script-94-11.txt < prev   
Encoding:
Internet Message Format  |  1994-12-03  |  1.2 MB  |  [TEXT/R*ch]

Text Truncated. Only the first 1MB is shown below. Download the file for the complete contents.
  1. Return-Path: owner-LISTSERV@DARTCMS1.DARTMOUTH.EDU
  2. Received: from dartcms1.dartmouth.edu by lks.lks.csi.com (5.65/6.930123)
  3.      with SMTP id AA24679; Thu, 1 Dec 94 10:50:21 -0600
  4. Message-Id: <9412011650.AA24679@lks.lks.csi.com>
  5. Received: from DARTCMS1.DARTMOUTH.EDU by DARTCMS1.DARTMOUTH.EDU
  6.    (IBM VM SMTP V2R2) with BSMTP id 1672; Thu, 01 Dec 94 11:51:16 EDT
  7. Received: from DARTCMS1.DARTMOUTH.EDU (NJE origin LISTSERV@DARTCMS1) by
  8.  DARTCMS1.DARTMOUTH.EDU (LMail V1.2a/1.8a) with BSMTP id 1666; Thu,
  9.  1 Dec 1994 11:50:44 -0400
  10. Date:         Thu, 1 Dec 1994 11:50:05 -0400
  11. From: "L-Soft list server at DARTCMS1 (1.8a)"              <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
  12. Subject:      File: "MACSCRPT LOG9411"
  13. To: F Terry <pfterry@lks.csi.com>
  14.  
  15. =========================================================================
  16. Date:         Mon, 31 Oct 1994 21:31:13 -0800
  17. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  18. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19. From:         Brad Schrick <brad@APE.COM>
  20. Subject:      Re: quit... quit!... QUIT!!!
  21.  
  22. >What about....
  23. >
  24. >"If you have a stay open script that won't quit, you can type shift-
  25. >command-Q to stop it."
  26.  
  27. -- very funny, I suppose I deserve it... but this is for a customer, and
  28. for him all the pieces need to close up and quit when the script gets to
  29. the end of the input file...  he knows his way around a Mac, but little
  30. things confuse, and error messages (File Not Open) don't give customers
  31. nice warm feelings...
  32.  
  33. -- I sent the 'error number -128' solution to the list, but haven't got it
  34. back myself yet; my former message (about quit quit etc...) did come
  35. through, about four or more hours later, so I suppose the -128 one will
  36. come through to me as well...
  37.  
  38. -- thanks for the help, verily; the jokes and jibes are worth all the real
  39. help I've traded here... -- Brad
  40.  
  41.  __________________________________________________________________________
  42.  Brad Schrick      brad@ape.com  *** Palo Alto, California
  43.                  http://ape.com/
  44.   http://www.batnet.com/ape/     ... It's not easy until it's done.
  45.  __________________________________________________________________________
  46. =========================================================================
  47. Date:         Mon, 31 Oct 1994 17:27:36 -0800
  48. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  49. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  50. From:         Edmund Lai <lai@APPLE.COM>
  51. Subject:      Re: xcmd osax and XCMD Shell etc.
  52.  
  53. >Rinaldi's Resource To Text function bombs my otherwise very stable machine.
  54. >
  55. >it only fails when:
  56. >
  57. >copy(choose file) to theFile
  58. >resource to text type "ICON" identifier "Bill" in theFile hexadecimal true
  59. >
  60. >BLAMMO!  Right to MacsBug
  61. >
  62. >Leave off the hex and it works fine.  That's of course, useless to me, I
  63. >need the hex!
  64. >
  65. >It says it's using 2.0 of ResToText, but I don't know if that or the shell
  66. >is the cause.
  67. >
  68. >If anyone's made this one work, let me know how!  I'm on a 7.5 System with
  69. >NO strange inits.  Well, everything else doesn't bomb including Greg
  70. >Quinn's _great_ additions.
  71. >
  72.  
  73. I tried it just now and indeed it crashes into MacsBug.
  74.  
  75. I tried it again and this time I look at the XCMD parameter block passed
  76. to the XCMD, it looks OK, I let it go into the XCMD and again it crashes.
  77.  
  78. This suggest the problem is in the XCMD. I try it one more time to step
  79. into the XCMD to see if anything is wrong, but this times it runs.
  80. Since then it runs fine. This suggests an uninitialized variable
  81. somewhere. Is it in the shell or is it in the XCMD? I don't know,
  82. although I am inclined to suspect the XCMD from what I have seen
  83. so far.
  84.  
  85. This is both the strong point and the weak point of the XCMD OSAX. It
  86. takes off the shelf XCMD and use it as is. This is a wonderful way
  87. of recycling XCMDs. Earlier there are question about a record sound
  88. OSAX. Rinaldi has two sound recording osax, one with user interaction
  89. and one without. They can be easily converted over to an osax using
  90. the XCMD OSAX. There are also question of OSAX writing to serial port
  91. and mention of a SerialHandler XFCN, the XCMD OSAX may also be able to
  92. do the job too.
  93.  
  94. The flip side is that if things are not going right, it is difficult to
  95. find out where it is wrong and how to fix it. Both the XCMD writer and
  96. the shell writer has only access the source to half the story and
  97. would not know what is going on in the other side.
  98.  
  99. >I once saw a program that would run XCMD's and XFCN's for AppleScript. It
  100. >was fast and small, and now it's gone. This is different than the XCMD osax
  101. >available. For one, it eliminates having to define xprm and aete resources.
  102.  
  103. The XCMD shell was written before the XCMD OSAX, the core code of the
  104. XCMD shell goes into the OSAX. The shell is very out of date and written
  105. before AppleScript. I don't know how well it would run now.
  106.  
  107. The XCMD Shell still needs aete, the difference is that it has
  108. sort of an installer. You install by dropping a file with an XCMD into
  109. it, and when you do that you have to fill in information which the shell
  110. will use to build the aete. No xprm is used because it relies on part
  111. of comment of the aete to do the job of xprm. However, it proves to be
  112. inadequate for a lot of XCMDs. The XCMD OSAX which comes after the
  113. XCMD shell does a much better job in this respect.
  114.  
  115. However, there are some nice thing about the Shell that is not available
  116. in the XCMD OSAX. First there is the crude installer mentioned earlier.
  117. The XCMD Shell supports the GetGlobal and SetGlobal call, the lack of
  118. which in the OSAX is a major reason why many complex XCMD cannot use
  119. the XCMD OSAX. The XCMD Shell let you try out the XCMD in a manner
  120. similar to Commando in MPW (i.e. you are presented with a dialog to
  121. fill out the parameters in the command), and it would even let you
  122. record the command.
  123.  
  124. It would be interesting if we can use the last feature in AppleScript.
  125. AppleScript is a bit too command line oriented for my own taste. It
  126. would be interesting to have a shell where you can fill out parameter
  127. to an OSAX like a commando to try it out and optionally to generate
  128. AppleScript command from it when you are writing a script.
  129.  
  130. >On to other matters, could anybody give me a step-by-step lazy man's guide
  131. >to extracting one of the commands in this collection to it's own addition?
  132. >300k plus of scripting addition for the use of a couple of commands seems
  133. >like overkill, especially if I'm going to give the project to a client.
  134. >
  135.  
  136. To delete the unused XCMDs, just use ResEdit or other resource editor
  137. and take out all the ones that you do not need. Then you need some
  138. aete editor to delete the terminology of all the XCMDs that you do
  139. not use. From the aete you can also determine the event ID of the
  140. XCMDs you need, the resource name of a XPRM is the same as the
  141. event ID, so you can also remove all the XPRMs that you do not need.
  142.  
  143. /* Disclaimer: All statments and opinions expressed are my own */
  144. /* Edmund K. Lai                                               */
  145. /* Apple Computer, MS303-3A                                    */
  146. /* 20525 Mariani Ave,                                          */
  147. /* Cupertino, CA 95014                                         */
  148. /* (408)974-6272                                               */
  149. zW@h9cOi
  150. =========================================================================
  151. Date:         Tue, 1 Nov 1994 08:44:57 +0100
  152. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  153. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  154. From:         "Alberto.V" <albertov@MINSK.DOCS.UU.SE>
  155. Subject:      FaceSpan list
  156.  
  157. Hi!
  158.  
  159. Some time ago there was a list posted on comp.sys.mac.programmer about
  160. the features that the next version of FaceSpan would include. If there
  161. is some interest I can post that list here. It was originally posted
  162. on AOL. So if you all already have seen it and dont wan't to see it
  163. again send me a note telling what to do.
  164.  
  165. Alberto.V
  166. =========================================================================
  167. Date:         Tue, 1 Nov 1994 00:14:40 -0800
  168. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  169. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  170. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  171. Subject:      Re: quit... quit!... QUIT!!!
  172.  
  173. Brad is having trouble quitting a stay open script application from an
  174. error handler.
  175.  
  176. Make sure you have a quit handler defined, and that it looks like this:
  177.  
  178. on quit
  179.     continue quit
  180. end quit
  181.  
  182. [It can do more than that, such as overruling the desire to quit.]
  183.  
  184. Given that, this silly script application (saved as stay-open) worked for me:
  185.  
  186. property n : 0
  187.  
  188. on run
  189.     set n to 0
  190. end run
  191.  
  192. on idle
  193.     try
  194.         if n > 5 then error "Testing"
  195.     on error
  196.         quit
  197.     end try
  198.     set n to n + 1
  199.     beep
  200.     return 5
  201. end idle
  202.  
  203. on quit
  204.     continue quit
  205. end quit
  206.  
  207.  
  208. --John
  209.  
  210. --
  211. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  212. =========================================================================
  213. Date:         Tue, 1 Nov 1994 04:20:18 -0700
  214. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  215. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  216. From:         Joe Alvarez <jalvarez@BEACH.SILCOM.COM>
  217. Subject:      Re: learning to use applescript
  218.  
  219. Dean Christakos wrote:
  220. >What's a good place to learn how to use Applescript proficiently? Are the
  221. >any good sources for this, perhaps on the Web?
  222. >
  223.  
  224. Open up Script Editor and print up a few of your favorite applications'
  225. Dictionaries. If nothing else, do the (scriptable 7.1.3 & extension)
  226. Finder. Take real simple scripts and substitute commands. There is a lot of
  227. trial and error. You'll want a guide like the Goodman book, but it is NOT
  228. written for people who are completely new to scripting concepts,IMO. Not
  229. enough examples for my taste.
  230.  
  231. I think the key is to use it more as a reference and just explore on your
  232. own. This is what has worked for me. Good luck!
  233.  
  234. BTW, if you own Quickeys, make sure to read about how to run scripts from
  235. keyboard shortcuts. This is really a super combination.
  236.  
  237. Joe
  238.  
  239. Joe Alvarez --> jalvarez@beach.silcom.com
  240. =========================================================================
  241. Date:         Tue, 1 Nov 1994 07:55:40 -0500
  242. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  243. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  244. From:         Kiran Wagle <groo@NETCOM.COM>
  245. Subject:      aete template
  246.  
  247. Does anyone have a template to edit 'aete's?  I've heard rumors of such a
  248. thing, but a check of the usual archive sites yielded nothing.  Pointers to
  249. it or a copy of it in the mail would be much appreciated.
  250.  
  251. ~ Kiran <groo@netcom.com>
  252.  
  253.  
  254. --
  255. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  256. =========================================================================
  257. Date:         Tue, 1 Nov 1994 08:41:38 -0400
  258. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  259. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  260. From:         Dave <DJR@ICF.HRB.COM>
  261. Subject:      Finding every occurence of a delimiter
  262.  
  263. Hi all,
  264.    A portion of a script I am writing contains a nested repeat loop which I
  265. would like to get ride to enhance speed performance.  The loop contains a
  266. check for every occurence of a tab to see if the file contains data or not.
  267. Some sample data would like:
  268. date <tab> <tab> <tab> 8 <tab> 12 <tab> <tab>
  269.  
  270. or
  271.  
  272. date <tab> 2.5 <tab> 0 <tab> 8
  273.  
  274. or
  275.  
  276. date <tab> <tab> <tab> <tab>
  277.  
  278. I have a script which when encountering data set 3 would correctly consider the
  279. file NULL, which is the purpose of the loop.  The portion of code looks like:
  280.  
  281. repeat with paragraphNum from 2 to (the number of paragraphs in theData)
  282.   set off to offset of tab in (paragraph paragraphNum of the Data)
  283.   set charCount to (number of characters of paragraph paragraphNum of theData)
  284.   if (character (off+1) of paragraph paranumber of theData = tab) then
  285.     set off to (off+1)
  286.     repeat until ((character off of paragraph paragraphNum of theData <> tab)
  287.       or (off = charCount))
  288.          set off to off+1
  289.     end repeat
  290.   endif
  291.   [deleted code]
  292. end repeat
  293.  
  294. The code works perfectly but it is much too slow for my liking.  The entire
  295. script works on every file in a folder (about 15 files) and takes about a
  296. minute.  Any suggestions on speed improvement??
  297.  
  298. Mainly I am looking for a faster routine to find all the tabs in a file and
  299. upon finding a non-tab character, exit the routine before the end of file.
  300.  
  301. Thanks,
  302.    Dave
  303. =========================================================================
  304. Date:         Tue, 1 Nov 1994 12:59:33 GMT
  305. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  306. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  307. From:         David Boroditsky <sage!admin@NOC.TOR.HOOKUP.NET>
  308. Organization: Sage Design
  309. Subject:      Re: QuarkXpress 3.31 NameBoxes Examples problem (UserLand)
  310.  
  311. >I have a problem running NameBoxes example script shipped with Quark. It
  312. >generates the error message: "QuarkXpress" reported the following error:
  313. >"Can't interpret the object specification."
  314.  
  315. I have run the same demo script on a Quarda 700 running Quark 3.31 and on a
  316. 6100/60 running Quark for PPC 3.31. The script ran fine on both. I tried a
  317. number of different types of documents (no boxes, lots of boxes, lots of
  318. pages...)
  319.  
  320. There is only one 'get' in the script, when the current name of the next box
  321. is gotten.
  322. Curiously, this line of code has a break point set with it. (The hand
  323. replaces the triangle to the left of the code). If this script is run in
  324. debug mode, execution will pause at this line.
  325. (To remove or set a breakpoint, hold down the command key and single click on
  326. the hand/triangle).
  327.  
  328. David
  329.  
  330. David Boroditsky - sage!dave@noc.tor.hookup.net
  331. Scripting what no one has scripted before...
  332. =========================================================================
  333. Date:         Tue, 1 Nov 1994 10:43:05 EST
  334. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  335. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  336. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  337. Subject:      Re: Applescript Commands
  338.  
  339. >I am a beginners in A.S.  I am trying to write some scripts to "Anarchie". When
  340. >i looked at the example that i found in it, i found the command "writetext".
  341. >i tried to find the meaning of the command in the dictionary of the
  342. >application and in the A.S Developer's Toolkit but found nothing. Why can't
  343. >i find it ?
  344.  
  345. Anarchie comes with a read me file in the sample scripts folder.  The read me
  346. files states that since there are problems with Apple's "Read/Write Commands"
  347. OSAX with the PowerPC under AS 1.1.  Therefore, the author of Anarchie wrote his
  348. own OSAX called "Text Files" OSAX which handles the problems.  It should be
  349. inside the sample scripts folder of Anarchie.  You'll need to place the "Text
  350. Files" OSAX within the Scripting Additions folder which can be found within your
  351. extension folder.  You can examine the commands this OSAX supports with the
  352. script editor via the Open Dictionary command.
  353.  
  354. Hope that helps.
  355.  
  356. --
  357. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  358. AOL:        kimsont@aol.com
  359. eWorld:     kimsontran@eworld.com
  360. --
  361. =========================================================================
  362. Date:         Tue, 1 Nov 1994 11:00:43 -0500
  363. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  364. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  365. From:         Robert Viens <viens@PUBNIX.NET>
  366. Subject:      Re: Finding every occurence of a delimiter
  367.  
  368. >Hi all,
  369. >   A portion of a script I am writing contains a nested repeat loop which I
  370. >would like to get ride to enhance speed performance.  The loop contains a
  371. >check for every occurence of a tab to see if the file contains data or not.
  372. >Some sample data would like:
  373. >date <tab> <tab> <tab> 8 <tab> 12 <tab> <tab>
  374. >
  375. >or
  376. >
  377. >date <tab> 2.5 <tab> 0 <tab> 8
  378. >
  379. >or
  380. >
  381. >date <tab> <tab> <tab> <tab>
  382. >
  383. >I have a script which when encountering data set 3 would correctly consider the
  384. >file NULL, which is the purpose of the loop.  The portion of code looks like:
  385. >
  386. >repeat with paragraphNum from 2 to (the number of paragraphs in theData)
  387. >  set off to offset of tab in (paragraph paragraphNum of the Data)
  388. >  set charCount to (number of characters of paragraph paragraphNum of theData)
  389. >  if (character (off+1) of paragraph paranumber of theData = tab) then
  390. >    set off to (off+1)
  391. >    repeat until ((character off of paragraph paragraphNum of theData <> tab)
  392. >      or (off = charCount))
  393. >         set off to off+1
  394. >    end repeat
  395. >  endif
  396. >  [deleted code]
  397. >end repeat
  398. >
  399. >The code works perfectly but it is much too slow for my liking.  The entire
  400. >script works on every file in a folder (about 15 files) and takes about a
  401. >minute.  Any suggestions on speed improvement??
  402. >
  403. >Mainly I am looking for a faster routine to find all the tabs in a file and
  404. >upon finding a non-tab character, exit the routine before the end of file.
  405. >
  406. >Thanks,
  407. >   Dave
  408.  
  409.  
  410. Hi Dave,
  411.  
  412. I`ve you try to use text item delimiters?
  413.  
  414. Here is a example:
  415.  
  416.  
  417. set savedDelimiters to text item delimiters of AppleScript
  418. set text item delimiters of AppleScript to tab
  419. repeat with paragraphNum from 2 to (the number of paragraphs in theData)
  420.         set para_var to paragraph paragraphNum of the Data
  421.         repeat with n from 1 to count of text item in para_var
  422.                 set textVar to text item n of para_var
  423.                 if textVar is not "" then -- You got some text
  424.         end repeat
  425. end repeat
  426. set text item delimiters of AppleScript to savedDelimiters
  427.  
  428. / Robert Viens  (viens@pubnix.net)  /  / 3981, St-Laurent bureau 810       /
  429. / Soft. Eng.                        /  / Montreal (Quebec)                 /
  430. / Les maitres typographes Zibra     /  / Fax.: 514-288-1599                /
  431. =========================================================================
  432. Date:         Tue, 1 Nov 1994 11:02:48 -0500
  433. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  434. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  435. From:         John Schettino <js12@GTE.COM>
  436. Subject:      Re: Finding every occurence of a delimiter
  437.  
  438. >Mainly I am looking for a faster routine to find all the tabs in a file and
  439. >upon finding a non-tab character, exit the routine before the end of file.
  440. >
  441.  
  442. This routine will scan a string for non-tab chars, set a flag and exit if
  443. any are found. It skips the first paragraph in the string, and then all
  444. chars preceeding the first tab in each paragraph.
  445.  
  446. "Brute force always wins" - me
  447.  
  448.  
  449.  
  450. set theData to "header junk" & return & "date" & tab & tab & return &
  451. "anything, really" & tab & tab -- test data
  452.  
  453. set notAllTabs to false
  454. set skipping to true
  455.  
  456. repeat with ch in (characters from paragraph 2 to character -1 of theData)
  457.         if skipping then
  458.                 set skipping to contents of ch =82 tab -- wait for first tab
  459.         else if contents of ch =3D return then
  460.                 set skipping to true -- start a new paragraph
  461.         else if contents of ch =82 tab then
  462.                 set notAllTabs to true
  463.                 exit repeat
  464.         end if
  465. end repeat
  466.  
  467. notAllTabs -- view results in result window, test this in your program!
  468.            -- it is TRUE if there is some data (other than tabs) in the file
  469.  
  470. - john
  471.  
  472. -----------------------------------------
  473. js12@gte.com             GTE Laboratories
  474. John Schettino                Waltham, MA
  475. =========================================================================
  476. Date:         Tue, 1 Nov 1994 08:17:51 -0800
  477. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  478. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  479. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  480. Subject:      Re: Anyone have or seen DataScript 2.0?
  481.  
  482. >Has anyone used or seen a demo of  DataScript, an applescript addition that
  483. >gives apple-event aware applications access to SQL databases?
  484.  
  485. I have used DataScript and I like it very much. I used it with Butler DAL
  486. database. The folks at General Knowledge provided excellent support. I ran
  487. into some bugs and within a couple of days they sent me a new rev that
  488. fixed that problem.
  489.  
  490. I recommend it.
  491.  
  492. Kee Nethery
  493.  
  494. _________________________________________________________________
  495. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  496. Kagi Shareware,   1442-A Walnut #392, Berkeley, CA 94709-1405 USA
  497. =========================================================================
  498. Date:         Tue, 1 Nov 1994 08:31:10 -0800
  499. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  500. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  501. From:         Kevin Purcell <kevinpu@ATM.COM>
  502. Subject:      Re: Finding every occurence of a delimiter
  503.  
  504. >   A portion of a script I am writing contains a nested repeat loop which I
  505. >would like to get ride to enhance speed performance.  The loop contains a
  506. >check for every occurence of a tab to see if the file contains data or not.
  507.  
  508. Some general comments on slow scripts:
  509.  
  510. You don't say which app you are using but if you can use filter references
  511. ("whoose" tests) with these objects then you may find a considerable speed
  512. up.
  513.  
  514. It follows the rule of thumb: do the most using application commands; do
  515. the least you can in AppleScript (especially parsing) because it is slow;
  516. use the fewest number of AppleEvents to performore your task.
  517.  
  518. The other alternative is to use an application to do the parsing for you.
  519. You might find MacPerl to be a good choice here.
  520.  
  521. Choose the correct app.
  522.  
  523. Work in big chunks.
  524.  
  525. Don't use AppleScript for parsing.
  526.  
  527. Kevin Purcell      Attachmate Corp        (206) 649-6489
  528. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  529. =========================================================================
  530. Date:         Tue, 1 Nov 1994 11:45:58 -0500
  531. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  532. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  533. From:         Bob Hassinger <HASSINGER@MERLIN.LMIG.COM>
  534. Subject:      Re: Anyone have or seen DataScript 2.0?
  535.  
  536. Kee Nethery writes:
  537.  
  538. >>Has anyone used or seen a demo of  DataScript, an applescript addition that
  539. >>gives apple-event aware applications access to SQL databases?
  540. >
  541. >I have used DataScript and I like it very much. I used it with Butler DAL
  542. >database. The folks at General Knowledge provided excellent support. I ran
  543. >into some bugs and within a couple of days they sent me a new rev that
  544. >fixed that problem.
  545. >
  546. >I recommend it.
  547. >
  548. >Kee Nethery
  549.  
  550. I am just becoming very interested in Datascript Sequelink.  Is that what is
  551. being referred to?  Our Mac network uses Sequelink as the preferred tool to
  552. access databases on VAXs and other larger systems, and I just started looking
  553. for a scriptable access to it.  This is what was suggested.
  554.  
  555. Does anyone know if DataScript would be suitable for interacting with the
  556. something other than standard data bases.  For example, the sample DCL server
  557. that comes with Sequelink?  This is a sample custom Sequelink server that is
  558. used to illustrate how to create your own servers for special applications and
  559. so on.  It can accept and spawn a DCL command on the VAX, and it can read and
  560. write a VMS RMS sequential file.  If I could extended it to access RMS ISAM
  561. files and control it from an AppleScript it would be the tool I am looking for.
  562.  
  563. Bob Hassinger
  564. hassinger@merlin.lmig.com
  565. =========================================================================
  566. Date:         Tue, 1 Nov 1994 09:22:26 -0800
  567. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  568. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  569. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  570. Subject:      Re: Anyone have or seen DataScript 2.0?
  571.  
  572. OK, I admit, I'm just a customer who uses DataScript and I like it. I
  573. cannot answer most of these questions. I use it with Butler DAL Server from
  574. Everyware. The authors of DataScript (and it's off-shoots) are very
  575. responsive (or at least they have been when I contacted them for info). May
  576. I suggest folks ask them specifics directly. They can be reached at:
  577.  
  578. General Knowledge
  579. they are in the UK
  580. +44 202 746 026
  581. knowledgable@applelink.apple.com
  582.  
  583. Kee Nethery
  584.  
  585. _________________________________________________________________
  586. Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
  587. Kagi Shareware,   1442-A Walnut #392, Berkeley, CA 94709-1405 USA
  588. =========================================================================
  589. Date:         Tue, 1 Nov 1994 09:28:50 -0800
  590. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  591. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  592. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  593. Subject:      Re: QuarkXpress 3.31 NameBoxes Examples problem (UserLand)
  594.  
  595. At 08:55 10/31/94, Alexander Lipman wrote:
  596.  
  597. >I have a problem running NameBoxes example script shipped with Quark. It
  598. >generates the error message: "QuarkXpress" reported the following error:
  599. >"Can't interpret the object specification."
  600. >
  601. >It seems to me that there is a mis something in a a
  602. >system.macintosh.core.get verb.
  603.  
  604. Unfortunately, I don't have a copy of the script in question (it's not on
  605. the XPress demo version I have available).  The Frontier Runtime which
  606. ships with the demo XPress is 2.0.1...what version do you have there?
  607.  
  608.    --John
  609.  
  610. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  611.   UserLand Software support
  612. =========================================================================
  613. Date:         Tue, 1 Nov 1994 09:29:00 -0800
  614. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  615. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  616. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  617. Subject:      Re: MACSCRPT Digest - 22 Oct 1994 to 23 Oct 1994
  618.  
  619. At 03:36 10/30/94, Jeremy Quinn wrote:
  620. >I would like to make this script available on gaea. Another thing I never
  621. >worked out with Frontier is how to make an installer, that includes scripts
  622. >from different locations in my DB. There are components of this script
  623. >scattered around my Frontier/Runtime root in:-
  624. >
  625. >system.verbs.apps.Eudora                (2 additions to glue table)
  626. >system.verbs.apps.Eudora.eventinfo      (1 addition)
  627. >system.verbs.apps.Mozilla               (NetScape's glue table)
  628. >system.menubars.CSOm                    (1 menu)
  629.  
  630.  
  631. I would suggest looking at some of the installers from UserLand.  The basic
  632. idea, when you have lots of little parts to adjust, is to have a folder
  633. containing each of those parts as an exported object, and a desktop script
  634. which loops over all the files in that folder, doing the appropriate thing
  635. for each type of file.
  636.  
  637. There's a good chance that you already have a sample in your database, at
  638. deskscripts.installer.
  639.  
  640. This would have to be customized for your particular purpose...you wouldn't
  641. want to replace someone's customized Eudora menubar, but rather make your
  642. new commands available in it.  That scripting can be a little tricky...it
  643. might be better to put a menubar object into the user's scratchpad, and let
  644. him/her copy commands into the Eudora menubar from there.
  645.  
  646.    --John
  647.  
  648. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  649.   UserLand Software support
  650. =========================================================================
  651. Date:         Tue, 1 Nov 1994 13:06:31 -0500
  652. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  653. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  654. From:         "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU>
  655. Subject:      FaceSpan
  656.  
  657. I have a FaceSpan project which shuttles images and text around among
  658. FileMaker Pro, Kudo Image Broswer, and QuarkXPress.
  659.  
  660. When I open my FaceSpan project and click "Project Script", there
  661. is a delay while Quark launches.  But neither FileMaker nor Kudo
  662. launches.
  663.  
  664. I would think that clicking "Project Script" would never do anything
  665. more than put up an editing window to let me edit my project script.
  666. Why ANYTHING would launch just because I'm about to edit, escapes me.
  667.  
  668. I have one block of script (attached to window, by the way, which is
  669. at this point closed) which launches FileMaker, Kudo, and Quark....if
  670. that script were somehow being kicked off, I might understand that
  671. all three app's would launch.
  672.  
  673. I cannot find anywhere, among any of my scripts, where I have
  674. statements which would only launch Quark.
  675.  
  676. So I have concluded that FaceSpan, for reasons know only to it (at this
  677. point), is deciding to launch Quark when I try to edit my global script.
  678.  
  679. Any suggestions as to why this is happening?  Have I failed to read
  680. some essential bit of documentation?
  681. =========================================================================
  682. Date:         Tue, 1 Nov 1994 10:30:53 -0800
  683. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  684. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  685. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  686. Subject:      Re: aete template
  687.  
  688. >Does anyone have a template to edit 'aete's?  I've heard rumors of such a
  689. >thing, but a check of the usual archive sites yielded nothing.  Pointers to
  690. >it or a copy of it in the mail would be much appreciated.
  691. >
  692.         There is an old one for ResEdit, but it won't work on most
  693. applications since it chokes on even slightly large 'aete's.
  694.  
  695.         The BEST tool for editing 'aete's is Resorcerer!!!  (and/or Rez).
  696.  
  697.  
  698. Leonard
  699.  
  700. -----------------------------------------------------------------------------
  701. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  702. Director of Advanced Technology         AppleLink:      MACgician
  703. Aladdin Systems, Inc.                   GEnie:          MACgician
  704. =========================================================================
  705. Date:         Tue, 1 Nov 1994 10:33:40 -0500
  706. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  707. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  708. From:         Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
  709. Subject:      variable assignments/declarations
  710.  
  711. Is the following true?
  712.  
  713. set x to "foo" == copy "foo" to x
  714.  
  715. this is just syntax, right?
  716.  
  717. Also, what is the difference between "global" and a property
  718. declaration? What is the difference between "set"/"copy" and "local"?
  719.  
  720. I'm too broke for the language reference :-\
  721.  
  722. Thanks,
  723. Jason
  724.  
  725.  
  726. --
  727. Jason Frankovitz - jfrankov@indiana.edu  - Indiana University Biocomputing
  728.                 Ontogeny recapitulates phylogeny. Duh.
  729. =========================================================================
  730. Date:         Tue, 1 Nov 1994 20:18:16 +0100
  731. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  732. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  733. From:         "Alberto.V" <albertov@MOSKVA.DOCS.UU.SE>
  734. Subject:      FaceSpan_List
  735.  
  736. Well, by the demand of some people, I'll post the
  737. "Next FaceSpan Version Feature List". I laid my hands on it
  738. when it was posted on comp.sys.mac.programmer by Jeff Johnson
  739. (jkjonson@znet.com). Jeff's comments are included before the list.
  740.  
  741. Enjoy!!
  742.  
  743. Alberto.V
  744.  
  745.  
  746.  
  747.  
  748. Howdy!
  749.  
  750. At the request of albertov@Moskva.DoCS.UU.SE, I'm posting a list of
  751. features for the next version of FaceSpan which I got from AppleLink.
  752. This is an official feature list by the hand of Uncle Dave himself, posted
  753. in the Developer Support area, under the topic "Interface Builder
  754. Discussion", in the June 1994 archive folder.
  755.  
  756. I hope this gets everyone else as excited about the next version as I am.
  757. Can't wait for that drag & drop support!
  758.  
  759.  Hello:
  760.  
  761.  At the World-Wide Developers' Conference, SDU showed FaceSpan and
  762. discussed some
  763.  of the features under development. Some features expected in the next version
  764.  are:
  765.  
  766.  
  767.  examine the state of modifier keys and the mouse. So too, you'll be able to
  768.  examine the screen, set the cursor and change the contents of the clipboard.
  769.  
  770.  
  771.  textboxes, and have greater control over interactions with the user. You will
  772.  also be able to get and set non-textual data types with the help of such
  773.  keyfilters.
  774.  
  775.  
  776. without
  777.  formulas. It includes resizable rows, columns and in-cell editing.
  778.  
  779.  
  780.  Pascal) to implement table features in any way you wish. The calls to your TDEF
  781.  will be event-based, giving you very precise control of the table's appearance
  782.  and behavior.
  783.  
  784.  
  785.  written in any OSA-compatible scripting languages that you have installed, not
  786.  just AppleScript.
  787.  
  788.  
  789.  project, so that the project will be completely self-contained (except for
  790.  AppleScript).
  791.  
  792.  
  793.  Script Editor.
  794.  
  795.  
  796. documents
  797.  in the Scriptable Text Editor can be scripted, giving you access to characters,
  798.  words and paragraphs, and their fonts, sizes and styles.
  799.  
  800.  
  801.  in reference to window items, too.
  802.  
  803.  
  804.  editing environment while building projects. - Your interface items will be
  805.  draggable and droppable.
  806.  
  807.  
  808.  default or prototype project.
  809.  
  810.  
  811.  default or prototype window.
  812.  
  813.  
  814. positions.
  815.  
  816.  
  817.  stops are, so that meta-characters within entries are no longer necessary. A
  818.  similar property for gauges and menus allow forms to accept configuration
  819.  information from outside the form itself.
  820.  
  821.  
  822.  itself. Each item can be set to stay where it is; to move vertically or
  823.  horizontally or both, keeping the same size; or to grow vertically or
  824.  horizontally or both, in proportion to the window's growth.
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  FaceSpan is great now--and getting better still. You should start using
  831. FaceSpan
  832.  for your scripting projects right away, so you will be ready to make use of all
  833.  these new features!
  834.  
  835.  We will begin alpha seeding in a couple of weeks...
  836.  
  837.  Uncle Dave
  838.  
  839.  Author: LEE.BUCK
  840.  
  841. --
  842. =========================================================================
  843. Date:         Tue, 1 Nov 1994 15:01:05 -0500
  844. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  845. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  846. From:         John Schettino <js12@GTE.COM>
  847. Subject:      Re: variable assignments/declarations
  848.  
  849. >Is the following true?
  850. >
  851. >set x to "foo" == copy "foo" to x
  852. >
  853. >this is just syntax, right?
  854. >
  855.  
  856. well, no.
  857. in the case of "set", you are getting a reference or pointer to an object.
  858. in the case of "copy" you are getting a new copy of an object
  859.  
  860. for example:
  861.  
  862. set listy to {"a", "B"}
  863. (in this case set and copy are the same since the object is a literal)
  864.  
  865. set myVar to item 1 of listy
  866. (myVar now holds "item 1 of listy")
  867.  
  868. copy item 1 of listy to myVar
  869. (myVar now holds "a")
  870.  
  871. >Also, what is the difference between "global" and a property
  872. >declaration? What is the difference between "set"/"copy" and "local"?
  873.  
  874. local just declares a local variable. it's useful for decalring a variable
  875. you use in a loop but access after the loop.
  876.  
  877. globals are visible to all handlers in a script
  878.  
  879. properties retain their values between runs (but loose them when you
  880. recompile the script)
  881.  
  882. >
  883. >I'm too broke for the language reference :-\
  884.  
  885. $30 for the complete applescript handbook. really.
  886.  
  887.  
  888. - john
  889.  
  890. -----------------------------------------
  891. js12@gte.com             GTE Laboratories
  892. John Schettino                Waltham, MA
  893. =========================================================================
  894. Date:         Tue, 1 Nov 1994 15:19:02 -0500
  895. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  896. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  897. From:         Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
  898. Subject:      Re: aete template
  899.  
  900. Leonard Rosenthol <leonardr@NETCOM.COM> responded:
  901. > >Does anyone have a template to edit 'aete's?  I've heard rumors of such a
  902. > >thing, but a check of the usual archive sites yielded nothing.  Pointers to
  903. > >it or a copy of it in the mail would be much appreciated.
  904. > >
  905. >         There is an old one for ResEdit, but it won't work on most
  906. > applications since it chokes on even slightly large 'aete's.
  907. >
  908. >         The BEST tool for editing 'aete's is Resorcerer!!!  (and/or Rez).
  909.  
  910. There's also a Hypercard stack that reads and (in principle) writes
  911. aete resources.  Someone from this list sent to me once; I think it was
  912. originally distributed on one of the developer CDs.  Since I still have
  913. the .sit.hqx copy on my account here, it would be easy to pass it on if
  914. you (the original poster whose name I've lost) are interested.
  915.  
  916. Cheers,
  917.  
  918. Tom
  919. -------------------------------------------------------------------------
  920. W. Thomas Pollard                               Department of Chemistry
  921. pollard@cucbs.chem.columbia.edu                 Columbia University
  922. -------------------------------------------------------------------------
  923. =========================================================================
  924. Date:         Tue, 1 Nov 1994 12:17:35 -0800
  925. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  926. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  927. From:         Kevin Purcell <kevinpu@ATM.COM>
  928. Subject:      Re: FaceSpan_List
  929.  
  930. "Alberto.V" <albertov@MOSKVA.DOCS.UU.SE> posted Lee Bucks message
  931. originating from Uncle Dave.
  932.  
  933. > Hello:
  934. >
  935. > At the World-Wide Developers' Conference, SDU showed FaceSpan and
  936. >discussed some
  937. > of the features under development. Some features expected in the next version
  938. > are:
  939. >
  940. >
  941. > examine the state of modifier keys and the mouse. So too, you'll be able to
  942. > examine the screen, set the cursor and change the contents of the clipboard.
  943. >
  944. >
  945. > textboxes, and have greater control over interactions with the user. You will
  946. > also be able to get and set non-textual data types with the help of such
  947. > keyfilters.
  948. >
  949. >
  950. >without
  951. > formulas. It includes resizable rows, columns and in-cell editing.
  952. >
  953. >
  954. > Pascal) to implement table features in any way you wish. The calls to
  955. >your TDEF
  956. > will be event-based, giving you very precise control of the table's appearance
  957. > and behavior.
  958. >
  959. >
  960. > written in any OSA-compatible scripting languages that you have installed, not
  961. > just AppleScript.
  962. >
  963. >
  964. > project, so that the project will be completely self-contained (except for
  965. > AppleScript).
  966. >
  967. >
  968. > Script Editor.
  969. >
  970. >
  971. >documents
  972. > in the Scriptable Text Editor can be scripted, giving you access to
  973. >characters,
  974. > words and paragraphs, and their fonts, sizes and styles.
  975. >
  976. >
  977. > in reference to window items, too.
  978. >
  979. >
  980. > editing environment while building projects. - Your interface items will be
  981. > draggable and droppable.
  982. >
  983. >
  984. > default or prototype project.
  985. >
  986. >
  987. > default or prototype window.
  988. >
  989. >
  990. >positions.
  991. >
  992. >
  993. > stops are, so that meta-characters within entries are no longer necessary. A
  994. > similar property for gauges and menus allow forms to accept configuration
  995. > information from outside the form itself.
  996. >
  997. >
  998. > itself. Each item can be set to stay where it is; to move vertically or
  999. > horizontally or both, keeping the same size; or to grow vertically or
  1000. > horizontally or both, in proportion to the window's growth.
  1001. >
  1002. >
  1003. >
  1004. >
  1005. >
  1006. > FaceSpan is great now--and getting better still. You should start using
  1007. >FaceSpan
  1008. > for your scripting projects right away, so you will be ready to make use
  1009. >of all
  1010. > these new features!
  1011. >
  1012. > We will begin alpha seeding in a couple of weeks...
  1013. >
  1014. > Uncle Dave
  1015.  
  1016. Couldn't resist commenting.
  1017.  
  1018. Hmmm, this posting is a little like FaceSpan 1.0 in that its only half
  1019. there with a lot of annoying bugs but you can still see sorta what they
  1020. meant.
  1021.  
  1022. I'm making a little list of these anyone from SDU care to mail me?
  1023.  
  1024. To Alberto: care to repost this document?
  1025.  
  1026. Kevin Purcell      Attachmate Corp        (206) 649-6489
  1027. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  1028. =========================================================================
  1029. Date:         Tue, 1 Nov 1994 12:17:56 -0800
  1030. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1031. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1032. From:         Kevin Purcell <kevinpu@ATM.COM>
  1033. Subject:      Re: variable assignments/declarations
  1034.  
  1035. >Is the following true?
  1036. >
  1037. >set x to "foo" == copy "foo" to x
  1038. >
  1039. >this is just syntax, right?
  1040. >
  1041. >Also, what is the difference between "global" and a property
  1042. >declaration? What is the difference between "set"/"copy" and "local"?
  1043. >
  1044. >I'm too broke for the language reference :-\
  1045. >
  1046. >Thanks,
  1047. >Jason
  1048. >
  1049. >
  1050. >--
  1051. >Jason Frankovitz - jfrankov@indiana.edu  - Indiana University Biocomputing
  1052. >                Ontogeny recapitulates phylogeny. Duh.
  1053.  
  1054. Nope there different (as I showed myself this morning! Coincidence, uh).
  1055.  
  1056. In there particular case these isn't a difference (because you can mutate
  1057. parts of a string -- its all or nothing).
  1058.  
  1059. set makes a reference to (a pointer to, in other languages or a shallow
  1060. copy) the item "foo" whereas copy actually copies the data (a deep copy).
  1061.  
  1062. You can see the difference in the following:
  1063.  
  1064. Run this and look at the result:
  1065.  
  1066. set x to {foo:"foo"}
  1067. set y to x
  1068. set foo of x to "bar"
  1069. {x, y}
  1070.  
  1071. x and y refer to the same item.
  1072.  
  1073. then run this and look at the result:
  1074.  
  1075. set x to {foo:"foo"}
  1076. copy x to y
  1077. set foo of x to "bar"
  1078. {x, y}
  1079.  
  1080. x and y refer to two different items.
  1081.  
  1082. See AS Language Guide p89 and p113 for the definitive scoop.
  1083.  
  1084. BTW, does anyone have a "reasonable" use for the alternate form of set
  1085.  
  1086. set y to 3
  1087.  
  1088. can also be written
  1089.  
  1090. 3 returning y
  1091.  
  1092. Has anyone actually used this form to make code more readable?
  1093.  
  1094. Kevin Purcell      Attachmate Corp        (206) 649-6489
  1095. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  1096. =========================================================================
  1097. Date:         Tue, 1 Nov 1994 15:05:01 -0500
  1098. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1099. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1100. From:         Kiran Wagle <groo@NETCOM.COM>
  1101. Subject:      What broke my script?
  1102.  
  1103. Hi folks,
  1104.  
  1105. This comes from a compiled script.  When I try to check the syntax to
  1106. recompile it, AS complains that "does not contain" in the if clause should
  1107. be a comma.  The script was compiled (by me) originally with AS 1.1 (from
  1108. the Scripters' kit) and probably recompiled with whatever came with 7.5.
  1109. It won't compile now, tho.
  1110.  
  1111. It RUNS fine, tho.  What's up here, does anyone know?
  1112.  
  1113. tell application "Eudora"
  1114.         get field "from" of message ""
  1115.         set MyFrom to my GetHeaderContents(result)
  1116.         reply message "" with quoting
  1117.         if (field "to" of message 0 does not contain MyFrom) <option-l>
  1118.                 then
  1119.                 set field "to" of message 0 to MyFrom
  1120.                 set field "cc" of message 0 to ""
  1121.         else
  1122.                 set field "cc" of message 0 to ""
  1123.         end if
  1124.         save message 0
  1125.         activate
  1126. end tell
  1127.  
  1128. --
  1129. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  1130. =========================================================================
  1131. Date:         Tue, 1 Nov 1994 15:53:32 U
  1132. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1133. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1134. From:         Gene Barkin <Gene_Barkin@SMTPGW.MUSC.EDU>
  1135. Subject:      Putting away a volume witho
  1136.  
  1137.   REGARDING           Putting away a volume without using the finder
  1138. I need a way to:
  1139. 1) connect to a server;
  1140. 2) run an application;
  1141. 3) "put away" the server volume after the user quits the application.
  1142.  
  1143. I can do this using the finder with the following as a stay open script:
  1144.  
  1145. tell application "Finder"
  1146.         activate
  1147.         select file "the application"
  1148.         open selection
  1149. end tell
  1150.  
  1151. on idle
  1152.         try
  1153.                 tell application "Finder"
  1154.                         select disk "the volume"
  1155.                         put away selection
  1156.                 end tell
  1157.                 return 30
  1158.  
  1159.         on error
  1160.                 tell application "Finder"
  1161.                         set foo to name of processes
  1162.                 end tell
  1163.                 if foo does not contain "the application" then
  1164.                         tell me to quit
  1165.                 end if
  1166.         end try
  1167.  
  1168. end idle
  1169.  
  1170. However, since not all our users have system 7.5, I need a way to do this
  1171. without the scriptable finder. Any suggestions? (Also, feel free to improve
  1172. on the above routine).
  1173.  
  1174. Thanks,
  1175.  
  1176. Gene
  1177. "Nothing seems to work, and neither does anything else"
  1178. =========================================================================
  1179. Date:         Tue, 1 Nov 1994 15:57:17 U
  1180. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1181. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1182. From:         "Hon, Michael T" <honmt@TXPCAP.HOU.XWH.BP.COM>
  1183. Subject:      Re: Anyone have or seen DataScript 2
  1184.  
  1185. > And you got the demo from...?
  1186. > _____________________________________________________________________________
  1187. >
  1188. >         Reply to:   RE>Anyone have or seen DataScript 2
  1189. >     I got a demo of DataScript.  Looks cool, but it doesn't run against
  1190. > Tandem SQLCI databases, so I never really put any time into the it.
  1191. >     They were generous enough to send me the demo, but it did take a long
  1192. > time...
  1193.  
  1194. _I_ got it from General Knowledge, via email <knoledgeable@applelink.apple.com.
  1195.  Took less than 24 hours.  I also uploaded the demo to the incoming directory
  1196. at gaea.  It's the Sybase/Open Client version, but it should be instructive, at
  1197. least syntactically, for any platform.
  1198.  
  1199. At our UG's AppleScript SIG last month, somebody who had actually used
  1200. DataScript for an Oracle/Excel/CAD application said that it worked, but didn't
  1201. report back SQL errors.
  1202.  
  1203. FWIW.
  1204.  
  1205. Mike
  1206.  
  1207.  
  1208. --
  1209. Mike Hon
  1210. Software Consultant                                 honmt@txpcap.hou.xwh.bp.com
  1211. Precision Task Group  Houston, TX                                  713/560-3017
  1212. =========================================================================
  1213. Date:         Tue, 1 Nov 1994 14:28:01 -0700
  1214. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1215. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1216. From:         MR Mac - Michael Robertson <robertso@SDSC.EDU>
  1217. Subject:      Opening a FM database over the net?
  1218.  
  1219. I tried the script:
  1220.  
  1221. tell application "Filemaker Pro"
  1222.    activate
  1223.    open file "file" of machine "machine" of zone "zone" with password
  1224. "password"
  1225.  end tell
  1226.  
  1227. And I always get "file" cannot be found. Of course I substitute all my
  1228. appropriate zone, file, and machine name variables. It works fine if I open
  1229. a database file on my own Mac (but what's the point of that?). Anyone done
  1230. this across zones? Any way to have it give you a list of available
  1231. databases? Any troubleshooting hints you'd like to share?
  1232.  
  1233.  
  1234.  
  1235. -- Michael
  1236.  
  1237.  
  1238. _____________________________________________________________________________
  1239. Michael Robertson - MR Mac         (619) 534-5107 office
  1240. Macintosh Business Consultant      (619) 989-8943 pager
  1241. San Diego Supercomputer Ctr.       (619) 534-5152 fax
  1242.  
  1243. Internet, America Online           robertso@sdsc.edu
  1244. _____________________________________________________________________________
  1245. =========================================================================
  1246. Date:         Tue, 1 Nov 1994 18:06:08 -0500
  1247. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1248. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1249. From:         "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
  1250. Subject:      Re: Opening a FM database over the net?
  1251. In-Reply-To:  <aadc6244020210035602@[132.249.200.67]>
  1252.  
  1253. >I tried the script:
  1254. >
  1255. >tell application "Filemaker Pro"
  1256. >   activate
  1257. >   open file "file" of machine "machine" of zone "zone" with password
  1258. >"password"
  1259. > end tell
  1260. >
  1261. >And I always get "file" cannot be found.
  1262.  
  1263. Near as I can figure, you NEED to be running FileMaker Pro 2.1v3 and
  1264. have FileMaker Network version 2.1v4
  1265.  
  1266. I tried running a similar script on some machines around here that were
  1267. running earlier versions of FMPro and got the same result.  So, I
  1268. updated to 2.1v3 and everything worked just fine.  You can download the
  1269. update from somewhere, but I can't remember exactly.  Try ftp.claris.com
  1270.  
  1271. Kevin
  1272. =========================================================================
  1273. Date:         Tue, 1 Nov 1994 20:08:59 -0500
  1274. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1275. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1276. From:         Kevin Haggerty <haggerty@UCS.INDIANA.EDU>
  1277. Subject:      Re: Scripting FileMaker PRO
  1278.  
  1279. You might try something like this, which works for me-
  1280.  
  1281. set TheTitle to "THIS IS A TEST TITLE"
  1282. tell application "FileMaker Pro v2" of machine "Quadra840" of zone "Optometry"
  1283.         Show Layout "Review" of Window "94 Review db"
  1284.         Show (every Record whose Cell "Title" = TheTitle)
  1285.         set TheAbstract to Cell "Abstract"
  1286. end tell
  1287. return TheAbstract
  1288.  
  1289.    When you try to run this, or just check the syntax, you will be prompted
  1290. to log on to the Mac where FileMaker lives. This remote Mac must have
  1291. program linking turned on, and you must have access rights (file sharing
  1292. need not be turned on, but it may help in debugging). If you have problems
  1293. with FileMaker pausing to display dialog boxes, you could try writing a
  1294. FileMaker script to do the job (under the FileMaker 'Scripts' menu) and
  1295. using the [No dialog] modifier.
  1296.  
  1297. >>Hello
  1298. >>
  1299. >>I am slowly working my way through the Tao of Applesrcipt. What
  1300. >>I ultimatly would like to do is control Filemaker Pro remotely
  1301. >>via Apple Scripts.
  1302. >>
  1303. >>Is there any sample script code for use with FileMaker Pro
  1304. >>that I could use as an example?
  1305. >
  1306. >FileMaker Pro is written so that it will not accept Apple events from
  1307. >remote machines.
  1308. >
  1309. >You would need something running on the machine with FileMaker which does
  1310. >accept remote events, and turns them into Apple events for FileMaker, then
  1311. >passes the results back to your remote machine.
  1312. >
  1313. >Above may or may not be true with FileMaker Server.
  1314. >
  1315. >   --John
  1316. >
  1317. >--
  1318. >jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1319.  
  1320. Kevin Haggerty                  ______________
  1321. Scientific Systems Dvlpr      _______--_--_______
  1322. School of Optometry        _____---___-_-___---______
  1323. Indiana University      _________--___-_-___--__________
  1324. 800 E. Atwater Ave.        ______--___-_-___--_______
  1325. Bloomington IN 47405          ___---__-_-__---____
  1326. haggerty@indiana.edu            __---__-__---___
  1327. http://research.opt.indiana.edu    __ -_- ___
  1328. =========================================================================
  1329. Date:         Wed, 2 Nov 1994 16:36:59 +0800
  1330. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1331. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1332. From:         Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
  1333. Subject:      Re: DataScript
  1334. In-Reply-To:  <199411020659.OAA00997@uniwa.uwa.edu.au> from "Automatic digest
  1335.               processor" at Nov 2, 94 00:00:42 am
  1336.  
  1337. I've used DataScript v1.x and 2.0 with a VAX and Macintosh Oracle host
  1338. via DAL and SQLnet. I wrote a review for the September 94 MacNews - not
  1339. much use to those of you outside Australasia! In summary - it is an
  1340. excellent product which works as advertised.
  1341.  
  1342. You need to get the right version for your database. DataScript supports
  1343. DAM/DAL, Oracle, SequeLink and Sybase.
  1344.  
  1345. Regards,
  1346.  
  1347. Todd
  1348. =========================================================================
  1349. Date:         Wed, 2 Nov 1994 02:58:14 -0700
  1350. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1351. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1352. From:         Ralph Risch <risch@ALUMNI.CS.COLORADO.EDU>
  1353. Subject:      RE>FaceSpan/QuarkXPress
  1354.  
  1355. >> [Dana E. Cartwright 315-442-9104]:
  1356.   ...I cannot find anywhere, among any of my scripts, where I have
  1357. statements which would only launch Quark.
  1358.   Any suggestions as to why this is happening?  Have I failed to read
  1359. some essential bit of documentation? <<
  1360.  
  1361. AppleScript is automatically launching QuarkXPress because XPress has
  1362. a bit set in its 'scpt' resource which indicates that it has a dynamic
  1363. terminology. XPress's terminology is 'dynamic' because XTensions can
  1364. be scriptable and thus add to XPress's terminology. AppleScript
  1365. thus has to launch XPress the first time it compiles a script using
  1366. any XPress objects or commands in order to ask it for its terminology.
  1367.  
  1368. Dave Shaver
  1369. Acrobyte R&D
  1370. =========================================================================
  1371. Date:         Wed, 2 Nov 1994 12:13:56 +0100
  1372. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1373. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1374. From:         "Alberto.V" <albertov@MINSK.DOCS.UU.SE>
  1375. Subject:      FaceSpanList_Repost
  1376.  
  1377. Hmm, my first try didn't succed, so I'll try again to post the
  1378. "Next FaceSpan Version Feature List". I laid my hands on it
  1379. when it was posted on comp.sys.mac.programmer by Jeff Johnson
  1380. (jkjonson@znet.com). Jeff's comments are included before the list.
  1381. If this post don't come thrugh send me a notice and I will FTP this
  1382. list to gaea instead.
  1383.  
  1384. Enjoy!!
  1385.  
  1386. Alberto.V
  1387.  
  1388.  
  1389.  
  1390.  
  1391. Howdy!
  1392.  
  1393. At the request of albertov@Moskva.DoCS.UU.SE, I'm posting a list of
  1394. features for the next version of FaceSpan which I got from AppleLink.
  1395. This is an official feature list by the hand of Uncle Dave himself, posted
  1396. in the Developer Support area, under the topic "Interface Builder
  1397. Discussion", in the June 1994 archive folder.
  1398.  
  1399. I hope this gets everyone else as excited about the next version as I am.
  1400. Can't wait for that drag & drop support!
  1401.  
  1402.  Hello:
  1403.  
  1404.  At the World-Wide Developers' Conference, SDU showed FaceSpan and
  1405. discussed some
  1406.  of the features under development. Some features expected in the next version
  1407.  are:
  1408.  
  1409.  New application properties. Applications will have properties that let you
  1410.  examine the state of modifier keys and the mouse. So too, you'll be able to
  1411.  examine the screen, set the cursor and change the contents of the clipboard.
  1412.  
  1413.  New kind of "keyfilters". You will be able to set up patterns and formats for
  1414.  textboxes, and have greater control over interactions with the user. You will
  1415.  also be able to get and set non-textual data types with the help of such
  1416.  keyfilters.
  1417.  
  1418.  Table object. The new table object will present a spreadsheet-like grid
  1419.  without formulas. It includes resizable rows, columns and in-cell editing.
  1420.  
  1421.  Custom TDEF support. FaceSpan will accept your own TDEF procedures (in C or
  1422.  Pascal) to implement table features in any way you wish. The calls to your
  1423.  TDEF will be event-based, giving you very precise control of the table's
  1424.  appearance and behavior.
  1425.  
  1426.  OSA support. The script editor for each interface element will accept scripts
  1427.  written in any OSA-compatible scripting languages that you have installed, not
  1428.  just AppleScript.
  1429.  
  1430.  OSAX (scripting addition) embedding. Scripting additions can be added to a
  1431.  project, so that the project will be completely self-contained (except for
  1432.  AppleScript).
  1433.  
  1434.  Event logging. You will now be able to log events in a manner similar to the
  1435.  Script Editor.
  1436.  
  1437.  Text Suite Support. Textboxes will be scriptable in the same way that
  1438.  documents in the Scriptable Text Editor can be scripted, giving you access
  1439.  to characters, words and paragraphs, and their fonts, sizes and styles.
  1440.  
  1441.  Where clause. The "where" clause will be accepted, not only in textboxes, but
  1442.  in reference to window items, too.
  1443.  
  1444.  Drag & Drop support. Drag & Drop is to be supported in two ways: - In the
  1445.  editing environment while building projects. - Your interface items will be
  1446.  draggable and droppable.
  1447.  
  1448.  Custom default project. Any project you designate as such will be used as the
  1449.  default or prototype project.
  1450.  
  1451.  Custom default window. Any window you designate as such will be used as the
  1452.  default or prototype window.
  1453.  
  1454.  An application preference file keeps track of such things as window
  1455.  positions.
  1456.  
  1457.  Format property. Lists will have format properties that tell where the tab
  1458.  stops are, so that meta-characters within entries are no longer necessary. A
  1459.  similar property for gauges and menus allow forms to accept configuration
  1460.  information from outside the form itself.
  1461.  
  1462.  Growth property. All window items will respond to the growth of the window
  1463.  itself. Each item can be set to stay where it is; to move vertically or
  1464.  horizontally or both, keeping the same size; or to grow vertically or
  1465.  horizontally or both, in proportion to the window's growth.
  1466.  
  1467.  Printing. Page-oriented and developer-defined printing will be available.
  1468.  
  1469.  And more...
  1470.  
  1471.  FaceSpan is great now--and getting better still. You should start using
  1472.  FaceSpan for your scripting projects right away, so you will be ready to
  1473.  make use of all these new features!
  1474.  
  1475.  We will begin alpha seeding in a couple of weeks...
  1476.  
  1477.  Uncle Dave
  1478.  
  1479.  Author: LEE.BUCK
  1480.  
  1481. --
  1482. =========================================================================
  1483. Date:         Wed, 2 Nov 1994 07:44:42 -0500
  1484. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1485. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1486. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  1487. Subject:      FileMaker Pro PICTs
  1488.  
  1489. Anyone know a way to get PICTs out of FMP in a script?
  1490.  
  1491. This includes repeating Picture fields.
  1492.  
  1493. Thanks,
  1494.  
  1495. Chuck
  1496. =========================================================================
  1497. Date:         Wed, 2 Nov 1994 07:13:02 -0600
  1498. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1499. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1500. From:         Steve Alex <steve_alex@AIDT.EDU>
  1501. Subject:      Re: Finding every occurence of a delimiter
  1502.  
  1503. >Hi all,
  1504. >   A portion of a script I am writing contains a nested repeat loop which I
  1505. >would like to get ride to enhance speed performance.  The loop contains a
  1506. >check for every occurence of a tab to see if the file contains data or not.
  1507. >Some sample data would like:
  1508. >date <tab> <tab> <tab> 8 <tab> 12 <tab> <tab>
  1509.  
  1510. CUT......
  1511. >
  1512. >Mainly I am looking for a faster routine to find all the tabs in a file and
  1513. >upon finding a non-tab character, exit the routine before the end of file.
  1514. >
  1515. >Thanks,
  1516. >   Dave
  1517.  
  1518. There were several post that responded to request, another solution is the
  1519. Tokenize OSAX that was in the incoming folder on gaea. I just played with
  1520. it a little, but it seems to do all that  AppleScript's text item
  1521. delimiters was supposed to do (more than one delimiter etc), plus a little
  1522. more.
  1523.  
  1524. Steve Alex                                 (steve_alex@aidt.edu)
  1525.  
  1526.       _/_/_/     _/   _/_/_/_/    _/_/_/_/  Alabama Industrial
  1527.    _/      _/   _/   _/      _/    _/       Development Training
  1528.   _/_/_/_/_/   _/   _/      _/    _/        75 TechnaCenter Dr.
  1529.  _/      _/   _/   _/      _/    _/         Montgomery AL, 36117
  1530. _/      _/   _/   _/_/_/_/      _/          (205) 242-2675
  1531. =========================================================================
  1532. Date:         Wed, 2 Nov 1994 10:59:16 -0500
  1533. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1534. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1535. From:         Robert Viens <viens@PUBNIX.NET>
  1536. Subject:      Anyone has see OSAX that does XTND filtering?
  1537.  
  1538. I will be very interested in a OSAX that support XTND filtering.
  1539. Does anyone wrote this kind of AS extension? If not, I will
  1540. do It my self. So everybody interested, let me konw!
  1541.  
  1542. Regards,
  1543.  
  1544. / Robert Viens  (viens@pubnix.net)  /  / 3981, St-Laurent bureau 810       /
  1545. / Soft. Eng.                        /  / Montreal (Quebec)                 /
  1546. / Les maitres typographes Zibra     /  / Fax.: 514-288-1599                /
  1547. =========================================================================
  1548. Date:         Wed, 2 Nov 1994 08:14:42 -0800
  1549. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1550. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1551. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  1552. Subject:      Re: FaceSpan
  1553.  
  1554. >I have a FaceSpan project which shuttles images and text around among
  1555. >FileMaker Pro, Kudo Image Broswer, and QuarkXPress.
  1556. >
  1557. >When I open my FaceSpan project and click "Project Script", there
  1558. >is a delay while Quark launches.  But neither FileMaker nor Kudo
  1559. >launches.
  1560.  
  1561. The first part of the delay, most likely, is loading the AppleScript
  1562. Scripting Component.
  1563.  
  1564. Next, you are running into the fact that there is really (as seen by
  1565. AppleScript) only one script in a FaceSpan project...it's an artifact of
  1566. FaceSpan (and a very nice one!!!) that you edit this one script in chunks,
  1567. as if it were multiple scripts.
  1568.  
  1569. Next you encounter the question:  what does it mean to open an editing
  1570. window on a script.  In AppleScript, one thing it means is decompiling the
  1571. script back into [styled] source code.  To do that, the Application's
  1572. "Dictionary" needs to be accessed (for the translations from magic codes
  1573. into [English] terminology.  For most apps, this means simply barging in
  1574. and getting the 'aete' resource out of the app's resource fork.
  1575.  
  1576. Next you run into:  However, XPress "does" drop-in extensions, which *may*
  1577. extend the scripting language.  So, based on the behavior you are seeing,
  1578. XPress has the bit set in another resource (not the 'aete') which says "If
  1579. you need my Dictionary, ask *me* for it, don't just grab my 'aete'.  Such
  1580. apps want a chance to merge in the 'aete' snippets from the current set of
  1581. drop in extensions.  There's an Apple event which AppleScript sends to
  1582. XPress for that purpose...clearly XPress needs to be running to do that.
  1583.  
  1584. >I would think that clicking "Project Script" would never do anything
  1585. >more than put up an editing window to let me edit my project script.
  1586. >Why ANYTHING would launch just because I'm about to edit, escapes me.
  1587. >
  1588. >I have one block of script (attached to window, by the way, which is
  1589. >at this point closed) which launches FileMaker, Kudo, and Quark....if
  1590. >that script were somehow being kicked off, I might understand that
  1591. >all three app's would launch.
  1592. >
  1593. >I cannot find anywhere, among any of my scripts, where I have
  1594. >statements which would only launch Quark.
  1595. >
  1596. >So I have concluded that FaceSpan, for reasons know only to it (at this
  1597. >point), is deciding to launch Quark when I try to edit my global script.
  1598. >
  1599.  
  1600. Simple, right?  [I think the above is mostly correct...I'm sure Jon Pugh
  1601. will adjust any problems, as well he should!]
  1602.  
  1603.    --John
  1604.  
  1605. --
  1606. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  1607. =========================================================================
  1608. Date:         Wed, 2 Nov 1994 09:37:00 PST
  1609. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1610. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1611. From:         Kathleen Scalise <KMS@PA.UREL.BERKELEY.EDU>
  1612. Organization: Public Affairs
  1613. Subject:      filemaker and html
  1614.  
  1615. I'm having filemaker return data to my world wide web server. My problem is that
  1616. filemaker is sticking "," between the contents of each record and messing up my
  1617.  html
  1618. output. I've got the data in the records formatted with embedded html commands,
  1619.  so
  1620. I'd like filemaker just to return the text contents of the fields I want without
  1621. adding anything--tabs would be okay but things like commas and quotes are no
  1622.  good. I
  1623. can solve the problem by exporting from filemaker to a file and having
  1624.  scriptable
  1625. text editor clean up the file, but it makes the whole script run way too slow.
  1626.  Any
  1627. tips for getting clean text from filemaker?  Here's the part of the script
  1628.  that's a
  1629. problem:
  1630.  
  1631. else
  1632.         tell application "FileMaker Pro (sect)"
  1633.                 Show (every Record of Window "testfile" whose Cell "CourseNumber
  1634. " contains
  1635. http_search_args)
  1636.                 copy Field "CourseDesc" of Window "testfile" to TheAbstract
  1637.         end tell
  1638. end if
  1639. return TheAbstract
  1640. =========================================================================
  1641. Date:         Wed, 2 Nov 1994 14:35:19 -0500
  1642. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1643. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1644. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  1645. Subject:      How do I send events to a Face Span applet?
  1646.  
  1647. I have Filemaker sending an event to an applet created with the script
  1648. editors.  Filemaker sends:
  1649.  
  1650. event class: FMPX
  1651. event ID: INAC
  1652.  
  1653. My applet contains:
  1654.  
  1655. on =ABevent FMPXINAC=BB
  1656.         initiateCall()
  1657. end =ABevent FMPXINAC=BB
  1658.  
  1659. This works fine.  When I try the same thing with a FrontMost (or FaceSpan)
  1660. compiled applet, it never seems to receive the event.  I pasted the
  1661. identical code from my old working applet into the project script and could
  1662. not get it to trigger.  I am doing something wrong or do Frontmost applets
  1663. not receive events?
  1664. Thanks in advance.
  1665.  
  1666.  
  1667. Mark Hadfield
  1668. hadfield@sickkids.on.ca
  1669. The Hosptial For Sick Children
  1670. =========================================================================
  1671. Date:         Wed, 2 Nov 1994 14:08:47 -0500
  1672. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1673. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1674. From:         "Aaron B. Freimark" <aaron@MED.CORNELL.EDU>
  1675. Subject:      Writing to a text file
  1676.  
  1677. Is there an osax which will allow me to read from and write to a text file?
  1678. I know I can do this with the Scriptable Text Editor, but it seems a bit
  1679. clunky.
  1680.  
  1681. Missing that, how about pasting from and copying to the clipboard?
  1682. AppleScripts.  Since FoxPro can't get responses from AppleScripts directly,
  1683. I figure I need to go through a file or through the cipboard.  Maybe
  1684. there's a solution I've missed?
  1685.  
  1686. Thanks in advance,
  1687.  
  1688. -- Aaron
  1689.  
  1690.  
  1691. ________________________________________________
  1692. Aaron B. Freimark  <aaron@med.cornell.edu>   Nu?
  1693. User Support, Cornell University Medical College
  1694. =========================================================================
  1695. Date:         Wed, 2 Nov 1994 11:22:33 -0800
  1696. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1697. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1698. From:         Kevin Purcell <kevinpu@ATM.COM>
  1699. Subject:      Re: FaceSpan
  1700.  
  1701. >Next, you are running into the fact that there is really (as seen by
  1702. >AppleScript) only one script in a FaceSpan project...it's an artifact of
  1703. >FaceSpan (and a very nice one!!!) that you edit this one script in chunks,
  1704. >as if it were multiple scripts.
  1705.  
  1706. Would those that know care to exapand on this?
  1707.  
  1708. Kevin Purcell      Attachmate Corp        (206) 649-6489
  1709. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  1710. =========================================================================
  1711. Date:         Wed, 2 Nov 1994 14:44:56 -0500
  1712. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1713. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1714. From:         Daniel Berlinger <Daniel@CIRCUMTECH.COM>
  1715. Subject:      MacPerl/OSA/AS/Frontier
  1716.  
  1717. --part_AADD56680010276E00000001
  1718. Content-Type: Text/Plain; charset=US-ASCII
  1719. Content-Disposition: Inline
  1720.  
  1721. The concensus seems to be:
  1722.  
  1723. Perl had some the of the best text mangling capabilities
  1724. It is very useful as an agent for MacHTTP
  1725. It is generally worth the bother, regardless of cross platform issues (which
  1726. only server to enhance its value)
  1727.  
  1728. If someone who has some MacHTTP scripts that they wouldn't mind sending me I'd
  1729. love to look at them.
  1730.  
  1731. I know that OSA compliance (be it limited to PowerMacs or not) would certainly
  1732. add value to MacPerl for me. I already use Frontier extensively and would love
  1733. to be able to add the strengths of Perl to Frontier in the same way I can add
  1734. Applescripts power. Frontier makes it easy to create "objects" that can be
  1735. called from a Frontier script and you can pass entire execution sequences just
  1736. as easily.
  1737.  
  1738. Thank you all for your time,
  1739.  
  1740. I guess I have to really sit down and work my way through the O'Reilly books.
  1741.  
  1742. Daniel
  1743.  
  1744. --part_AADD56680010276E00000001
  1745. Content-Type: Text/Plain; charset=US-ASCII
  1746. Content-Disposition: Inline
  1747.  
  1748. Daniel Berlinger                         Daniel@circumtech.com
  1749. "I wasnt thinking...
  1750.           ...obviously this doesn't matter to my point."
  1751.  
  1752. Administrator of Information Systems   Circumstance Technology
  1753. --part_AADD56680010276E00000001--
  1754. =========================================================================
  1755. Date:         Wed, 2 Nov 1994 14:53:04 -0500
  1756. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1757. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1758. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  1759. Subject:      Re: filemaker and html
  1760. In-Reply-To:  <no.id> from "Kathleen Scalise" at Nov 2, 94 09:37:00 am
  1761.  
  1762. --Kathleen Scalise wrote:
  1763. >
  1764. >else
  1765. >   tell application "FileMaker Pro (sect)"
  1766. >      Show (every Record of Window "testfile" whose Cell "CourseNumber"
  1767. >       contains http_search_args)
  1768. >      copy Field "CourseDesc" of Window "testfile" to TheAbstract
  1769. >   end tell
  1770. >end if
  1771. >return TheAbstract
  1772.  
  1773.     Your problem with this script is the fact that you are returning an
  1774. AppleScript List object. List objects have their elements separated by
  1775. commas. If you don't want any separation you can simply change the last
  1776. statement to "return TheAbstract as text". This will remove all
  1777. delimiters from the items in the list. If you would prefer to have a
  1778. specific delimiter (like a tab) you need to use something like this:
  1779.  
  1780. set oldDelimiters to AppleScript's Text Item Delimiters
  1781. set AppleScript's Text Item Delimiters to {tab}
  1782. return text items of TheAbstract
  1783. set AppleScript's Text Item Delimiters to oldDelimiters
  1784.  
  1785. -Hades
  1786. =========================================================================
  1787. Date:         Wed, 2 Nov 1994 18:14:20 -0500
  1788. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1789. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1790. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  1791. Subject:      An Obvious Question?
  1792.  
  1793. It must be right under my nose but I cannot figure out how to issue a
  1794. command to another application and continue my script without waiting for a
  1795. response.
  1796.  
  1797. tell application "foo"
  1798. doSomething()
  1799. --don't wait for result, keep going!!
  1800. end tell
  1801. .
  1802. .
  1803. .
  1804.  
  1805. Mark Hadfield
  1806. hadfield@sickkids.on.ca
  1807. The Hosptial For Sick Children
  1808. =========================================================================
  1809. Date:         Wed, 2 Nov 1994 17:12:46 -0600
  1810. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1811. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1812. From:         Chris Dowling <cdowling@FACSTAFF.WISC.EDU>
  1813.  
  1814. AS folk,
  1815. The following "Finder Scripting Toolkit" code moves files, but it will not
  1816. more invisible files.
  1817.  
  1818. on DragObjects(dst, objs)
  1819.         tell application "Finder" to <event FNDRmove> dst given <property
  1820. fsel>:objs
  1821. end DragObjects
  1822.  
  1823. Can this code be changed to move all files, including invisible files?  I
  1824. suspect one could change the "property" statement to include invisible
  1825. files.
  1826. Thanks,
  1827. Chris
  1828. ~~~~
  1829. Chris Dowling, Manager, SOE Computer Lab,
  1830. 1025 W. Johnson St., Madison, WI  53706, (608) 263-4339
  1831. cdowling@facstaff.wisc.edu
  1832. ~~~~
  1833. =========================================================================
  1834. Date:         Wed, 2 Nov 1994 16:06:35 -0700
  1835. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1836. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1837. From:         Joe Alvarez <jalvarez@BEACH.SILCOM.COM>
  1838. Subject:      Quickeys and AS- problem getting scripts running
  1839.  
  1840. I haven't heard much talk about Quickeys [QK] here. I've just started to
  1841. use Quickeys and AppleScript together and I'm afraid I still have a lot to
  1842. learn.
  1843.  
  1844. Using the QK Applescript external, I've been trying to do a very simple and
  1845. useful script. I have a PPP connection to Internet and I'd like to turn on
  1846. the MacTCP switch in Eudora and then open PPP using the "Mac PPP control"
  1847. scripts and Scripting addition I found on the Net.
  1848.  
  1849. I know there's a number of ways to do this, but this is what I tried:
  1850.  
  1851. I save a script as Script Editor text document which looks like this--
  1852.  
  1853. if not (PPPopened) then
  1854.         tell application "Macintosh HD:Eudora  :Eudora 2.1:Eudora2.1"
  1855.                 set setting 84 to "n"
  1856.                 set setting 27 to "n"
  1857.         end tell
  1858.         openPPP
  1859. else
  1860.         display dialog "MacPPP is already open" buttons {"OK"} default
  1861. button "OK"
  1862. end if
  1863.  
  1864. {The first part sets the Eudora switch to MacTCP (vs. Comm Toolbox.)} I
  1865. then use QK to invoke the script
  1866.  
  1867. I get an "AS error. User interaction not allowed" alert (as best as I can
  1868. recall.) This makes my system lockup till I force-quit the QK Toolbox.
  1869.  
  1870. If the "tell..." part and the openPPP parts are invoked separately, they
  1871. work fine. Together, I get that message.
  1872.  
  1873. Can someone explain how to combine these 2 pieces?
  1874.  
  1875. Also, I avoid using Applescript self-running applications because I don't
  1876. want to see the beachball. From QK, which is better--compiled or
  1877. non-compiled text?
  1878.  
  1879. Also, I originally tried this scipt from within QK, but got the same error
  1880. message. I then assumed (probably incorrectly) that QK cannot address a
  1881. scripting addition--though now I'm not sure what to think. The QK
  1882. documentation is real sparse here. Any pointers to more info on Quickeys
  1883. and AS would be most appreciated!
  1884.  
  1885. TIA
  1886.  
  1887. Joe Alvarez
  1888.  
  1889.  
  1890. ++----------------------------------------------------------------------++
  1891.   Joe Alvarez - Applied Computer Solutions // jalvarez@beach.silcom.com
  1892.   http://www.rain.org/~jalvarez/sig.html  ><  Finger for PGP public key
  1893. =========================================================================
  1894. Date:         Wed, 2 Nov 1994 16:46:03 -0800
  1895. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1896. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1897. From:         Kevin Purcell <kevinpu@ATM.COM>
  1898. Subject:      Re: An Obvious Question?
  1899.  
  1900. >It must be right under my nose but I cannot figure out how to issue a
  1901. >command to another application and continue my script without waiting for a
  1902. >response.
  1903. >
  1904. >tell application "foo"
  1905. >doSomething()
  1906. >--don't wait for result, keep going!!
  1907. >end tell
  1908. >.
  1909. >.
  1910. >.
  1911. >
  1912. >Mark Hadfield
  1913. >hadfield@sickkids.on.ca
  1914. >The Hosptial For Sick Children
  1915.  
  1916. Use the:
  1917.  
  1918. ignoring application responses
  1919. ...
  1920. end
  1921.  
  1922. block
  1923.  
  1924. Kevin Purcell      Attachmate Corp        (206) 649-6489
  1925. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  1926. =========================================================================
  1927. Date:         Wed, 2 Nov 1994 19:59:09 -0500
  1928. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1929. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1930. From:         Danny Goodman <DGoodman@AOL.COM>
  1931. Subject:      Re: Writing to a text file
  1932.  
  1933. >Maybe there's a solution I've missed?
  1934.  
  1935. Version 1.1 of AppleScript includes OSAXes to read and write text files.
  1936.  
  1937. Danny
  1938. =========================================================================
  1939. Date:         Wed, 2 Nov 1994 21:28:59 -0500
  1940. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1941. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1942. From:         Joe Campbell <jpcampb@AFTERLIFE.NCSC.MIL>
  1943.  
  1944. get MACSCRPT LOG9410
  1945. =========================================================================
  1946. Date:         Wed, 2 Nov 1994 23:02:00 CST
  1947. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1948. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1949. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  1950. Subject:      Re: Writing to a text file
  1951.  
  1952. >Is there an osax which will allow me to read from and write to a text file?
  1953. >I know I can do this with the Scriptable Text Editor, but it seems a bit
  1954. >clunky.
  1955.  
  1956. The read/write commands that are part of AppleScript 1.1 allow you to read
  1957. from and write to standard text files. In fact, I'm using one now to log my
  1958. PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
  1959. ships as part of System 7.5.
  1960.  
  1961. >Here's why:  I'm trying to get FoxPro (2.6) to communicate with my
  1962. >AppleScripts.  Since FoxPro can't get responses from AppleScripts directly,
  1963. >I figure I need to go through a file or through the cipboard.  Maybe
  1964. >there's a solution I've missed?
  1965.  
  1966. Filemaker Pro can't directly communicate with AppleScripts, either, but
  1967. I've written an applet called List Processor that runs scripts based on an
  1968. 'oapp' AppleEvent sent to List Processor with the name of the script
  1969. attached. If you can send Apple Events from FoxPro, that solves having Fox
  1970. Pro communicate with AppleScript. Getting data back into FoxPro could be
  1971. more challenging. The clipboard is definitely an option if you're using
  1972. Jon's Commands, or in some cases, the scriptable Finder.
  1973.  
  1974. Dennis L. Whiteman
  1975. THE ULTIMATE FREELANCER
  1976. =========================================================================
  1977. Date:         Wed, 2 Nov 1994 22:11:15 -0600
  1978. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1979. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1980. From:         sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
  1981. Subject:      Various questions
  1982.  
  1983. Hello everyone,
  1984.  
  1985. I am new to this mailing list, and have been learning AppleScript for the
  1986. past few months.  I am very impressed with it, but am having one problem
  1987. that i can't find a solution for:
  1988.  
  1989. How do you select a folder?  There is the choose file command, but i
  1990. need to select a folder, so i can use the finderLib function
  1991. "moveFilestoTrash".  Does anyone know how to do this?
  1992.  
  1993. Thanks in advance,
  1994.  
  1995. eric brunick
  1996. =========================================================================
  1997. Date:         Wed, 2 Nov 1994 23:34:29 -0800
  1998. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  1999. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2000. From:         Jon Pugh <jonpugh@NETCOM.COM>
  2001. Subject:      Re: MACSCRPT Digest - 1 Nov 1994 to 2 Nov 1994
  2002.  
  2003. John W. Baxter <jwbaxter@OLYMPUS.NET> wrote:
  2004.  
  2005. >Next you run into:  However, XPress "does" drop-in extensions, which *may*
  2006. >extend the scripting language.  So, based on the behavior you are seeing,
  2007. >XPress has the bit set in another resource (not the 'aete') which says "If
  2008. >you need my Dictionary, ask *me* for it, don't just grab my 'aete'.  Such
  2009. >apps want a chance to merge in the 'aete' snippets from the current set of
  2010. >drop in extensions.  There's an Apple event which AppleScript sends to
  2011. >XPress for that purpose...clearly XPress needs to be running to do that.
  2012.  
  2013. >...
  2014.  
  2015. >Simple, right?  [I think the above is mostly correct...I'm sure Jon Pugh
  2016. >will adjust any problems, as well he should!]
  2017.  
  2018. No problems here.  My only question is, are there any extensions which *do*
  2019. extend the language?  If not, this bit could be turned off and this
  2020. especially annoying behavior averted.  Given the benefit of hindsight, I
  2021. think it would have been better to do something like having the resource
  2022. list folders and file types to search for extension aetes.  That way you
  2023. wouldn't have to launch.  Unfortunately, that's not general enough to cover
  2024. all the possibilities, so launching is required.  If it's not being used
  2025. though, it would be nice to turn it off.
  2026.  
  2027. If you do want to turn it off, simply clear the high order bit (0x8000) of
  2028. the scsz resource.  It's just a long.
  2029.  
  2030. Jon
  2031. =========================================================================
  2032. Date:         Thu, 3 Nov 1994 08:03:27 -0500
  2033. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2034. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2035. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  2036. Subject:      List of Lists
  2037.  
  2038. How does one create a list of lists from an existing series of lists?
  2039.  
  2040. I've can generate a series of lists based on rearranging a series of
  2041. repeating fields from FileMaker Pro.
  2042.  
  2043. However, for what I'm trying to do, I think I need to generate a list of
  2044. lists.
  2045.  
  2046. How do I do such a thing?
  2047.  
  2048. I've tried such things as...
  2049.  
  2050.      set totalList to totalList & newListElement
  2051.  
  2052. But all I get is a never ending list.
  2053.  
  2054. Help...
  2055.  
  2056. Thanks,
  2057.  
  2058. Chuck
  2059. =========================================================================
  2060. Date:         Thu, 3 Nov 1994 14:29:45 +0100
  2061. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2062. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2063. From:         WalrathW <walrathw@RFERL.ORG>
  2064. Subject:      Tokenize Bug Fix & New OSAXen
  2065.  
  2066. A bug surfaced yesterday in the Tokenize 1.0 OSAX and has since been fixed,
  2067. but I need to ask everyone using Tokenize to upgrade as soon as possible
  2068. since the bug could be a little nasty in some situations. The problem will
  2069. only occur if any of the tokens being returned are longer than 255
  2070. characters. If they are, random memory will be flattened like cake under a
  2071. truck (that's lorry for some of you) tire (that's tyre for som...).
  2072.  
  2073. I've just uploaded to the incoming directory at gaea an archive with about a
  2074. half dozen OSAXen in it, one of which is Tokenize 1.1. Here's a short blurb
  2075. on what the other toys do.
  2076.  
  2077. * Tokenize
  2078.   Parses text into "tokens" based on a list of delimiters. Easier and more
  2079.   powerful than using AppleScript's text item delimiters.
  2080.  
  2081. * Detokenize (Join List)
  2082.   Once you've tokenized your text to death, put all those items back together
  2083.   with complete control over what to separate the items with, and where the
  2084.   separators should be placed. (Lots of options, and I'll add more if someone
  2085.   can think of any it should have.)
  2086.  
  2087. * Offsets Of
  2088.   Improves upon the offsets of osax which comes with GTQLib. No limit on
  2089.   string sizes and accepts either a string or a list of strings to search in.
  2090.  
  2091. * Change Case
  2092.   Changes the case of text to any of the following:
  2093.         {upper/lower/title/sentence/toggle/who cares}
  2094.   (You must be dying to know what _who cares_ does.... )
  2095.  
  2096. * Balloon Help
  2097.   Turns balloon help on, off, or returns status of BH.
  2098.  
  2099. * Replace
  2100.   Replaces a string or list of strings in a piece of text by another string.
  2101.  
  2102.  
  2103. If anyone would prefer, I would be happy to mail you a copy of these. Send a
  2104. private message (not to the list) to me.
  2105.  
  2106. All of these are freeware (with a couple restrictions).
  2107.  
  2108. Enjoy...
  2109.   -wayne
  2110. walrath@cs.indiana.edu
  2111. =========================================================================
  2112. Date:         Thu, 3 Nov 1994 09:16:07 -0500
  2113. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2114. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2115. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  2116. Subject:      Re: Writing to a text file
  2117.  
  2118. >Filemaker Pro can't directly communicate with AppleScripts...
  2119. >Dennis L. Whiteman
  2120. >THE ULTIMATE FREELANCER
  2121.  
  2122. Sure it can!  I use the following technique.  Works flawlessly except if
  2123. the applescript application holding the events is not loaded.  In that case
  2124. the event needs to be sent twice.  It works as follows:
  2125. A Filemaker script sending an apple event to the applet.
  2126.  
  2127. event class FMPX
  2128. event ID DOIT (whatever four letter word you want to use)
  2129.  
  2130. the applet contains
  2131.  
  2132. on =ABevent FMPXDOIT=BB
  2133.        -- whatever code you want goes here
  2134.         --I usually call a handler
  2135. end =ABevent FMPXDOIT=BB
  2136.  
  2137. I have FM databases that call over a dozen different events at the click of
  2138. a button.  I use it to export data, to sort information, to pass data to
  2139. another database, verify information in a record before the user closes it
  2140. etc.
  2141.  
  2142. It is a hack but a highly effective one.
  2143.  
  2144.  
  2145. Mark Hadfield
  2146. hadfield@sickkids.on.ca
  2147. The Hospital For Sick Children
  2148. =========================================================================
  2149. Date:         Thu, 3 Nov 1994 08:29:53 -0600
  2150. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2151. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2152. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2153. Subject:      Re: Tokenize Bug Fix & New OSAXen
  2154. In-Reply-To:  Your message of "Thu, 03 Nov 94 14:29:45 +0100"
  2155.  
  2156. Good Morning Everyone,
  2157.  
  2158. Wayne's new osaxen (thanks, Wayne!) can be found in
  2159.  
  2160. ftp://gaea.kgs.ukans.edu/applescript/osaxen/ACME_Script_Widgets.hqx
  2161.  
  2162. Hmmmmm.....this is quite a collection. Should have called them Wayne's
  2163. Commands. :-)
  2164.  
  2165. pf
  2166. =========================================================================
  2167. Date:         Thu, 3 Nov 1994 06:38:42 -0800
  2168. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2169. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2170. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  2171. Subject:      Re: Quickeys and AS- problem getting scripts running
  2172.  
  2173. > I get an "AS error. User interaction not allowed" alert (as best as I can
  2174. > recall.) This makes my system lockup till I force-quit the QK Toolbox.
  2175.  
  2176. Let me speak for my code in this situation.  The MacPPP Control OSAX forces
  2177. user interaction when ever a MacPPP connetion is opened (and in version
  2178. 1.2, when the connection is closed).
  2179.  
  2180. This is done because MacPPP presents its progress dialog while establishing
  2181. the connection.  The only way around this is to ensure that your script is
  2182. the foreground application prior to calling openPPP or closePPP.
  2183.  
  2184. -Mark
  2185. =========================================================================
  2186. Date:         Thu, 3 Nov 1994 15:41:36 +0100
  2187. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2188. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2189. From:         Dario Lopez =?iso-8859-1?Q?K=E4sten?= <cl2dlope@CLING.GU.SE>
  2190. Subject:      Re: FaceSpan 2.0
  2191.  
  2192. Jummy!
  2193.  
  2194. When?  How?  How Much?
  2195.  
  2196. /dario
  2197.  
  2198.  
  2199. ____________________________________________________________________________=
  2200. __
  2201. Dario Lopez K=E4sten                    |   Student of Computational Linguis=
  2202. tics
  2203. cl2dlope@hal.cling.gu.se              |   G=F6teborg University, SWEDEN
  2204. Send e-mail to my son,                |   [ Macintosh Systems Consultant ]
  2205. Put "To Felix" in the subject field   |   [ & Part time 4D/Mac Developer ]
  2206. ____________________________________________________________________________=
  2207. __
  2208. =========================================================================
  2209. Date:         Thu, 3 Nov 1994 09:50:02 -0500
  2210. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2211. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2212. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  2213. Subject:      Re: List of Lists
  2214. In-Reply-To:  <no.id> from "Charles Bruce Pelto" at Nov 3, 94 08:03:27 am
  2215.  
  2216. --Charles Bruce Pelto wrote:
  2217. >
  2218. >How does one create a list of lists from an existing series of lists?
  2219.  
  2220.     That depends on how you want the list to look...
  2221.  
  2222. >I've can generate a series of lists based on rearranging a series of
  2223. >repeating fields from FileMaker Pro.
  2224. >
  2225. >However, for what I'm trying to do, I think I need to generate a list of
  2226. >lists.
  2227. >
  2228. >How do I do such a thing?
  2229. >
  2230. >I've tried such things as...
  2231. >
  2232. >     set totalList to totalList & newListElement
  2233. >
  2234. >But all I get is a never ending list.
  2235.  
  2236.     Try this: set totalList to totalList & {newListElement}
  2237.  
  2238.     Or the more efficient: set end of totalList to {newListElement}
  2239.  
  2240. -Hades
  2241. =========================================================================
  2242. Date:         Thu, 3 Nov 1994 10:26:58 -0500
  2243. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2244. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2245. From:         Danny Goodman <DGoodman@AOL.COM>
  2246. Subject:      Re: Various questions
  2247.  
  2248. >How do you select a folder?  There is the choose file command, but i
  2249. >need to select a folder,
  2250.  
  2251. AppleScript 1.1 includes a Choose Folder scripting addition.
  2252.  
  2253. Danny Goodman
  2254. =========================================================================
  2255. Date:         Thu, 3 Nov 1994 10:32:30 -0500
  2256. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2257. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2258. From:         Danny Goodman <DGoodman@AOL.COM>
  2259. Subject:      Re: List of Lists
  2260.  
  2261. >How does one create a list of lists from an existing series of lists?
  2262.  
  2263. If you have a variable containing a list and need to make that a nested list
  2264. (like for preparing data for insertion into an Excel range), then do
  2265. something like this:
  2266.  
  2267. -- totalList contains a list
  2268. set totalList to {totalList}
  2269.  
  2270. Danny Goodman
  2271. =========================================================================
  2272. Date:         Thu, 3 Nov 1994 11:28:54 -0600
  2273. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2274. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2275. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2276. Subject:      Choose Item osax
  2277.  
  2278. Howdy,
  2279.  
  2280. Owen Watson (thanks, Owen!) has uploaded a copy of Choose Item osax that lets
  2281. you display and choose an item from a list. This is copyrighted by ACI and
  2282. comes with a disclaimer that they are "in any case of whatever may happen when
  2283. this osax is used." You'll find it in
  2284.  
  2285. ftp://gaea.kgs.ukans.edu/applescript/osaxen/Choose_Item_osax.sea.hqx
  2286.  
  2287. Have fun.
  2288.  
  2289. pf
  2290. =========================================================================
  2291. Date:         Thu, 3 Nov 1994 11:43:04 -0600
  2292. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2293. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2294. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2295. Subject:      Yet Another Item
  2296.  
  2297. Jon Pugh has provided a new aete for HyperCard 2.2 that allows you to
  2298. specify shorthand for AppleScript elements simply by
  2299. including all the various items in the aete.  Hypercard has
  2300. "bkgnd", "bkgnd button" and "bkgnd field" defined already.
  2301. This aete has "bg", "cd", "btn", "cd btn", "cd fld", "bg btn",
  2302. & "bg fld".  It makes AppleScripting much more HyperTalk-like.
  2303. This has no effect on the scripts you produce, so there
  2304. are no compatibility problems.
  2305.  
  2306. In addition, this aete also fixes a bug in the AppleScript Script
  2307. Editor which can cause your dictionary window to come up blank
  2308. if an aete is purgeable. Hypercard's aete is purgeable, so this
  2309. problem could affect Hypercard dictionaries.
  2310.  
  2311. Simply replace your Hypercard 2.2 aete resource with this one
  2312. using your favorite resource editor, and you can type the same
  2313. shorthand in AppleScript that you do in HyperTalk.
  2314.  
  2315. You'll find it in
  2316.  
  2317. ftp://gaea.kgs.ukans.edu/applescript/addons/HypercardAETE.sit.hqx
  2318.  
  2319. Cheers.
  2320.  
  2321. pf
  2322. =========================================================================
  2323. Date:         Thu, 3 Nov 1994 09:51:02 PDT
  2324. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2325. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2326. From:         Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
  2327. Subject:      Field specs and GTQ sort
  2328.  
  2329. )1994, R. Nelson Byrne
  2330. Greg Quinn gave us a wonderful OSAX for sorting records, part of his
  2331. very useful GTQLib 1.2. I had occasion to use it the other day, and
  2332. immediately ran across a problem hinted at in the documentation: how to
  2333. find the secret code that identifies the records. Greg writes:
  2334.  
  2335. RIf the list contains records, the records must consist of a field
  2336. specification and a direction as follows:
  2337. {field spec:"unam",direction: ascending order}S
  2338.  
  2339. ItTs the field spec weUre talking about here. He says:
  2340.  
  2341. Unfortunately, the four character code is difficult to determine without
  2342. having internal knowledge of a record's data structure.  Hopefully, some
  2343. day a way will appear to do this by mere field name instead of the
  2344. field's four-character designator.
  2345.  
  2346. Well, I donUt know a field spec from a field mouse, but this script is a
  2347. way to discover field specs - clumsy, but what the hey. I noticed that
  2348. some  record types, such as Rresource nameS, seem to be known to apple
  2349. script already and receive special treatment, whereas others, such as
  2350. RNovelS in the example below, are unknown and the description of the
  2351. entire record structure appears in the written record.
  2352.  
  2353. IUm enclosing the script.
  2354. Nelson
  2355. >>>>>Nelson@nbyrne.SAIC.com
  2356.      Nelson Byrne
  2357.      SAIC  LOC#001/MS#C2
  2358.      10260 Campus Point Drive
  2359.      San Diego, CA 92121
  2360. >>>>>(619) 546-6485
  2361.  
  2362.  
  2363. (This file must be converted with BinHex 4.0)
  2364.  
  2365. =========================================================================
  2366. Date:         Thu, 3 Nov 1994 11:25:39 PDT
  2367. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2368. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2369. From:         Peter Boctor <pboctor@MV.US.ADOBE.COM>
  2370. Subject:      How to get the zone of mounted volume
  2371.  
  2372. Hi everybody,
  2373.  
  2374. I am new to the list and this is my first question. I've looked through some of
  2375. the digests of the list and couldn't find an answer to my problem.
  2376.  
  2377. My question is : How can I extract the zone and server name of a mounted volume?
  2378.  
  2379. I am writing a script that will run when a user is not neccessarily at their
  2380. Mac. When first launched the script asks for a file  and sometimes the user will
  2381. point to a file on a server somewhere.
  2382.  
  2383. If I just make an alias of this volume and store it I can't mount it when the
  2384. user isn't around to enter their password. So I store their password somewhere
  2385. and use the MountVol() OSAX. But getting the name of the volume isn't enough. I
  2386. also need the zone and server name for MountVol().
  2387.  
  2388. Any ideas?
  2389.  
  2390. thanks in advance,
  2391. -peter
  2392. =========================================================================
  2393. Date:         Thu, 3 Nov 1994 15:38:55 -0500
  2394. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2395. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2396. From:         SRList <srlist@RDM.SCITEX.COM>
  2397. Subject:      Recordable Applications
  2398.  
  2399. Can anyone tell me how to find out what apps are recordable, not merely
  2400. scriptable? The only recordable apps I know of now are:
  2401.  System 7.5 Finder
  2402.  Scriptable Text Editor
  2403.  PhotoFlash
  2404.  
  2405. As a beginner, I find it much easier to work with recordable apps -- I can
  2406. basically make my own example scripts.
  2407.  
  2408. Has anyone been working with other recordable applications? Which ones? TIA!
  2409. =========================================================================
  2410. Date:         Thu, 3 Nov 1994 11:43:52 -0600
  2411. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2412. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2413. From:         Alex Sirota <adapple@APPLE.COM>
  2414. Subject:      Dictionary Compiler Script
  2415.  
  2416. For all those who have huge scripting additions folder and want to know what
  2417. events those OSAX do here is an enhanced version of Lawrence D'Oliveiro's
  2418. script for extracting those events. If you tried to use Scriptable Text
  2419. Editor to dump the output to you will find that there is a 32k limit. This
  2420. script outputs the dictionary to a file of our choice without 32k
  2421. limitations. I had to increase the app size of the compiled applet to 500k
  2422. for the script to run on about 150 OSAX.
  2423.  
  2424. Also not that there are 2 OSAX I found: ScriptToTextCoercion and StringToPSN
  2425. that do not contain an aete that the EightyLister OSAX can read.
  2426.  
  2427. Missing stuff: ability to read in replies and properties out of the OSAX
  2428. return structures. Lawrence? Anyone?
  2429.  
  2430.  
  2431.  
  2432. This AppleScript will export all the events implemented by all currently
  2433. installed scripting additions, creating a report as a regular text document.
  2434.  
  2435. Requires:
  2436. EightyLister OSAX
  2437. File Commands OSAX
  2438. New File OSAX
  2439. Read/Write OSAX
  2440.  
  2441. Note that the Scripting Commands OSAX conflicts with EightyLister OSAX. There
  2442. is a conflict in the property event ID. Scripting Commands uses event ID
  2443. while EightyLister user event id. Take Scripting Commands OSAX out of the
  2444. scripting additions folder if you have it before compiling this script.
  2445.  
  2446. Original written August 13 1994 by Lawrence DUOliveiro, Waikato University,
  2447. Hamilton, New Zealand.
  2448. Modified by Alex Sirota October 20 1994: use read/write osax to output to
  2449. file, cleanup output, error checking
  2450.  
  2451.  
  2452. try
  2453.     set destpath to (new file with prompt "Dictionary file name:" default
  2454. name "my AS dict")
  2455. -- choose output file
  2456.         set destfileref to (open for access destpath with write permission)
  2457. -- open output file and save ref #
  2458.         set eof destfileref to 0
  2459. -- set output file's length to 0 to make sure no previous contents are kept
  2460.         set numscriptingadd to 0
  2461. -- variable to keep track of number of OSAXen processed
  2462.  
  2463.         set AdditionsFolder to (scripting additions folder) as text
  2464. -- get path to scripting additions folder
  2465.         set TheResult to {}
  2466. -- TheResult is a list of all scripting additions and their events
  2467.  
  2468.         repeat with ThisFile in (list folder file AdditionsFolder)
  2469. -- with every file in scripting additions folder
  2470.                 set ThisFile to contents of ThisFile
  2471.                 set ThisFileInfo to info for file (AdditionsFolder & ThisFile)
  2472. -- file info for file
  2473.                 if not folder of ThisFileInfo then
  2474. -- if it is an osax type then append it into our list with event info
  2475.                         if file type of ThisFileInfo = "osax" then
  2476.                                 set TheResult to TheResult & {{TheAddition:ThisF
  2477. ile, TheEvents:(list
  2478. events file (AdditionsFolder & ThisFile))}}
  2479.                                 -- note that we label each item in the list with
  2480.  TheAddition
  2481.                                 --and TheEvents for access later
  2482.                         end if
  2483.                 end if
  2484.         end repeat
  2485.  
  2486.  
  2487.         repeat with ThisItem in TheResult -- with every item in the list
  2488.  
  2489.                 set numscriptingadd to numscriptingadd + 1
  2490.  -- add 1 to scripting addition counter
  2491.                 set ThisAddition to TheAddition of ThisItem
  2492.  -- now use the labels in the list and extract them
  2493.                 set TheseEvents to TheEvents of ThisItem
  2494.                 write (ThisAddition & return) to destfileref as string
  2495. -- write out name to file
  2496.                 repeat with ThisEvent in TheseEvents
  2497. -- with each event (command) get its class, id, name and description
  2498.                         set eventclass to (event class of ThisEvent)
  2499.                         set eventid to (event ID of ThisEvent)
  2500.                         set eventname to (event name of ThisEvent)
  2501.                         set eventdesc to (event description of ThisEvent)
  2502.                         set eventinfo to "Class: " & eventclass & return & B
  2503.                                 "ID: " & eventid & return & "Syntax: " & eventna
  2504. me & return &
  2505. "Description: " & eventdesc -- label the strings
  2506.  
  2507.                         write (eventinfo & return & return) to destfileref as st
  2508. ring
  2509. -- write out to file
  2510.  
  2511.                 end repeat
  2512.                 write ("---" & return & return) to destfileref as string -- writ
  2513. e out
  2514. delimiter text for prettyness
  2515.         end repeat
  2516.         close access destfileref
  2517. -- we're done, so close access to dictionary output file
  2518.         beep 3
  2519.         display dialog ("Number of Scripting Additions described: " &
  2520. numscriptingadd as string) buttons {"OK"} B
  2521.                 default button "OK" -- display what we did
  2522.  
  2523. on error errText number errNum
  2524.         if errNum = -128 then
  2525.                 display dialog "Cancelled." buttons {"Exit"} default button "Exi
  2526. t"
  2527.         else
  2528.                 close access destfileref -- finally close output file when done
  2529. -- otherwise a bad error occured (out of memory?)
  2530.                 -- but close output file first!
  2531.                 display dialog "Error: " & errText & return & "Number: " & errNu
  2532. m as string
  2533. buttons {"Blast!"} B
  2534.                         default button "Blast!" with icon caution
  2535.         end if
  2536. end try
  2537.  
  2538.  
  2539. `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
  2540. `,Alex Sirota,`,`,`,`,`,`,`Genius is an African that dreams of snow.`
  2541. `,adapple@apple.com`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`-Vladimir Nabokov,`
  2542. `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
  2543. `,http://atlantis.austin.apple.com/people.pages/adapple/adapple.html`
  2544. `,`,`,`,`,`,`,`Apple Web Server: http://www.info.apple.com`,`,`,`,`,`
  2545. `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
  2546. =========================================================================
  2547. Date:         Thu, 3 Nov 1994 16:21:17 U
  2548. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2549. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2550. From:         "Case, David" <case_david@JPMORGAN.COM>
  2551. Subject:      Re: Recordable Applications
  2552.  
  2553. >Can anyone tell me how to find out what apps are recordable, not merely
  2554. >scriptable? The only recordable apps I know of now are:
  2555. > System 7.5 Finder
  2556. > Scriptable Text Editor
  2557. > PhotoFlash
  2558.  
  2559. >As a beginner, I find it much easier to work with recordable apps -- I can
  2560. >basically make my own example scripts.
  2561.  
  2562. >Has anyone been working with other recordable applications? Which ones? TIA!
  2563.  
  2564. Apple publishes the "AppleScript Guide to Scriptable Applications" which lists
  2565. the capabilities of all apps that support AppleScript.  It's part number is
  2566. L0592LL/A.
  2567.  
  2568. Dave Case
  2569. JPMorgan
  2570. =========================================================================
  2571. Date:         Thu, 3 Nov 1994 12:43:16 +0000
  2572. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2573. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2574. From:         Bill Bedford <billb@MOUSA.DEMON.CO.UK>
  2575. Subject:      Graphic Scripting
  2576.  
  2577. Can anyone tell me if there are scripting systems that will allow
  2578. manipulation of graphic elements?
  2579.  
  2580. I'm working mainly in Freehand 3.1 and produce drawings that resemble
  2581. sheets of postage stamps, except that each 'stamp' may be either a
  2582. different drawing or size. I find that it can take longer to arrange these
  2583. elements on to the sheet than it takes to draw them. So I am looking for a
  2584. system that will take the drudgery out of this chore.
  2585.  
  2586.  AFAIK none of the major graphics programs are scriptable, so AS can only
  2587. be used to a limited extent.
  2588.  
  2589. ------------------------------------------------------------------------
  2590. Bill Bedford                                   Designer of Photo-Etches
  2591. billb@mousa.demon.co.uk
  2592. +44 9505 327
  2593.  
  2594.          Living on a island gives the world a different perspective
  2595. ------------------------------------------------------------------------
  2596. =========================================================================
  2597. Date:         Thu, 3 Nov 1994 14:06:34 -0800
  2598. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2599. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2600. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  2601. Subject:      Re: Recordable Applications
  2602.  
  2603. At 12:38 PM 11/3/94, SRList wrote:
  2604. >Can anyone tell me how to find out what apps are recordable, not merely
  2605. >scriptable?
  2606. >
  2607.         There is no way to know other than to try...
  2608.  
  2609.  
  2610.  The only recordable apps I know of now are:
  2611. > System 7.5 Finder
  2612. > Scriptable Text Editor
  2613. > PhotoFlash
  2614. >
  2615.         Let's not forget StuffIt Deluxe and StuffIt Lite - the FIRST
  2616. recordable applications (over a year BEFORE Apple released AppleScript) and
  2617. SITcomm our communications program.
  2618.  
  2619.  
  2620. >As a beginner, I find it much easier to work with recordable apps -- I can
  2621. >basically make my own example scripts.
  2622. >
  2623.         We agree, and that's why (almost) all Aladdin products are recordable.
  2624.  
  2625.  
  2626. Leonard
  2627.  
  2628. -----------------------------------------------------------------------------
  2629. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  2630. Director of Engineering                 AppleLink:      MACgician
  2631. Aladdin Systems, Inc.                   GEnie:          MACgician
  2632. =========================================================================
  2633. Date:         Thu, 3 Nov 1994 14:09:51 -0800
  2634. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2635. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2636. From:         Kevin Purcell <kevinpu@ATM.COM>
  2637. Subject:      Re: Recordable Applications
  2638.  
  2639. >Can anyone tell me how to find out what apps are recordable, not merely
  2640. >scriptable? The only recordable apps I know of now are:
  2641.  
  2642. Excel 5.0
  2643. Word 6.0 (but it spits out DoScripts with Basic commands)
  2644. Stuffit Deluxe/Lite
  2645. InTouch 3.0
  2646. Cirrus 2.0
  2647. InfoDepot 2.0
  2648. JPEG View 3.0 (freeware!)
  2649. Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
  2650. JMP 3.0
  2651. PowerAgent
  2652. Userland Frontier 2.1 (or later)
  2653. WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
  2654.  
  2655. With the AppleScript Scripters kit they provided a guide to Scriptable
  2656. Applications (most of these are in there).
  2657.  
  2658. Kevin Purcell      Attachmate Corp        (206) 649-6489
  2659. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  2660. =========================================================================
  2661. Date:         Thu, 3 Nov 1994 14:09:38 -0800
  2662. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2663. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2664. From:         Kevin Purcell <kevinpu@ATM.COM>
  2665. Subject:      Re: List of Lists
  2666.  
  2667. >How does one create a list of lists from an existing series of lists?
  2668. >
  2669. >I've can generate a series of lists based on rearranging a series of
  2670. >repeating fields from FileMaker Pro.
  2671. >
  2672. >However, for what I'm trying to do, I think I need to generate a list of
  2673. >lists.
  2674. >
  2675. >How do I do such a thing?
  2676. >
  2677. >I've tried such things as...
  2678. >
  2679. >     set totalList to totalList & newListElement
  2680. >
  2681. >But all I get is a never ending list.
  2682. >
  2683. >Help...
  2684. >
  2685. >Thanks,
  2686. >
  2687. >Chuck
  2688.  
  2689. For a fixed number use the "list constructor"
  2690.  
  2691. set a to {1,2,3}
  2692. set b to {1,2,3}
  2693. set c to {1,2,3}
  2694.  
  2695. set listolists to {a,b,c}
  2696.  
  2697. and listolists is a list of lists.
  2698.  
  2699. This hack is useful for returning multiple results in the results box on
  2700. your script editor.
  2701.  
  2702. For an indefinite number make a null list and in a loop add items at the end.
  2703.  
  2704. set listolists to {}
  2705.  
  2706. repeat n times
  2707.         set end of listolists to GetNextItem()
  2708. end
  2709.  
  2710. Check out the AppleScript Language Guide for the beef.
  2711.  
  2712. Kevin Purcell      Attachmate Corp        (206) 649-6489
  2713. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  2714. =========================================================================
  2715. Date:         Thu, 3 Nov 1994 14:14:45 -0800
  2716. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2717. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2718. From:         Ben Robbins <dennis@ESKIMO.COM>
  2719. Subject:      Re: Graphic Scripting & aete library
  2720. In-Reply-To:  <199411032126.AA05407@isumataq.eskimo.com>
  2721.  
  2722. On Thu, 3 Nov 1994, Bill Bedford wrote:
  2723.  
  2724. >  AFAIK none of the major graphics programs are scriptable, so AS can only
  2725. > be used to a limited extent.
  2726.  
  2727. Canvas 3.5 appears to be very scriptable.
  2728.  
  2729. Which brings me to another thought.  Would it be useful to have a
  2730. location where aete's from apps (commercial and otherwise) could be
  2731. posted?  An aete library where one could browse to see if there is an app
  2732. around with the scripting support one is looking for?  (okay, I admit it
  2733. - I think it would be great)
  2734.  
  2735. Saving the aete resource to a seperate file with ResEdit is a simple
  2736. matter, and it saves disk space anyway for apps you don't want to keep
  2737. installed.
  2738.  
  2739. Maybe beloved gaea would be willing to provide a directory?
  2740.  
  2741.  
  2742. Ben Robbins
  2743. ActiveMac Consulting                            voice: (206) 364-8601
  2744. Seattle, WA                                       fax: (206) 364-6191
  2745. dennis@eskimo.com
  2746. =========================================================================
  2747. Date:         Thu, 3 Nov 1994 16:25:35 -0600
  2748. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2749. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2750. From:         Fred Terry <pfterry@LKS.CSI.COM>
  2751. Subject:      Re: Graphic Scripting & aete library
  2752. In-Reply-To:  Your message of "Thu, 03 Nov 94 14:14:45 PST"
  2753.  
  2754. Ben Robbins suggests....
  2755.  
  2756. >Which brings me to another thought.  Would it be useful to have a
  2757. >location where aete's from apps (commercial and otherwise) could be
  2758. >posted?  An aete library where one could browse to see if there is an app
  2759. >around with the scripting support one is looking for?  (okay, I admit it
  2760. >- I think it would be great)
  2761. >
  2762. >Saving the aete resource to a seperate file with ResEdit is a simple
  2763. >matter, and it saves disk space anyway for apps you don't want to keep
  2764. >installed.
  2765. >
  2766. >Maybe beloved gaea would be willing to provide a directory?
  2767.  
  2768. I've thought about (and even started) a list of the commands in different
  2769. apps. Wouldn't that be a little better than the resource itself? Would we be
  2770. violating any copyrights by posting aete's? I'd be willing to provide a place
  2771. for it on gaea.
  2772.  
  2773. pf
  2774. =========================================================================
  2775. Date:         Thu, 3 Nov 1994 15:47:46 -0800
  2776. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2777. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2778. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  2779. Subject:      Launching an app in the background
  2780.  
  2781. I am running a script that launches StuffIt Expander. It has the potential of
  2782. doing the launching while AfterDark is active. The problem I'm having is that
  2783. launching an application while AfterDark is active is causing the application
  2784. to not fully launch until AfterDark goes away (I move the mouse or press a
  2785. key). I can force AfterDark to go away by sending it a keypress using AutoType
  2786. but we would like to keep AfterDark active throughout the entire process.
  2787.  
  2788. I have worked around this problem in cron by launching applications into the
  2789. background. This has worked fine so far. I also need to be able to do this
  2790. from a script and I haven't seen a way to do it yet.
  2791.  
  2792. This is a real irritating problem with AD 3.0. It seems that an application
  2793. cannot become the active application while AD is active. I was monitoring the
  2794. computer using some remote scripts and I see a process called "Visual Client."
  2795. It isn't an application but an AD document and Finder seems to have problems
  2796. dealing with it. Has anyone else run into this problem?
  2797.  
  2798. Any help would be appreciated.
  2799.  
  2800. Greg
  2801. =========================================================================
  2802. Date:         Thu, 3 Nov 1994 19:20:02 CST
  2803. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2804. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2805. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  2806. Subject:      Re: Recordable Applications
  2807.  
  2808. >Can anyone tell me how to find out what apps are recordable
  2809.  
  2810. Kudo Image Browser from Imspace is also recordable.
  2811.  
  2812. Doesn't the AS FAQ have a list of recordable aps?
  2813.  
  2814. Peter
  2815. =========================================================================
  2816. Date:         Fri, 4 Nov 1994 12:52:43 +1100
  2817. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2818. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2819. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  2820. Subject:      Re: Finding every occurence of a delimiter
  2821. In-Reply-To:  <199411012046.HAA07980@ariel.ucs.unimelb.EDU.AU> from "Kevin
  2822.               Purcell" at Nov 1, 94 08:31:10 am
  2823.  
  2824. >
  2825. > >   A portion of a script I am writing contains a nested repeat loop which I
  2826. > >would like to get ride to enhance speed performance.  The loop contains a
  2827. > >check for every occurence of a tab to see if the file contains data or not.
  2828. >
  2829. > Some general comments on slow scripts:
  2830. >
  2831. > You don't say which app you are using but if you can use filter references
  2832. > ("whoose" tests) with these objects then you may find a considerable speed
  2833. > up.
  2834. >
  2835. > It follows the rule of thumb: do the most using application commands; do
  2836. > the least you can in AppleScript (especially parsing) because it is slow;
  2837. > use the fewest number of AppleEvents to performore your task.
  2838. >
  2839. > The other alternative is to use an application to do the parsing for you.
  2840. > You might find MacPerl to be a good choice here.
  2841. >
  2842. > Choose the correct app.
  2843. >
  2844. > Work in big chunks.
  2845. >
  2846. > Don't use AppleScript for parsing.
  2847. >
  2848. The XCMD osax is ideal for this kind of thing, using its 'textual find' and
  2849. 'textual replace' commands, which are quite speedy. The following script
  2850. shows how you can process a text file without using an application. It uses
  2851. only AppleScript and XCMD osax. I can't remember if the file I/O uses
  2852. commands from AppleScript or ScriptTools.
  2853.  
  2854. I will upload this script to gaea. It should help answer a few questions
  2855. about text processing with AS, and avoid using the STE a bit...
  2856.  
  2857. Hope this helps,
  2858.  
  2859.  
  2860. /==============================\
  2861. | Jeremy P. Howard              |       "Logic must take care of itself."
  2862. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  2863. \==============================/         Tractatus Logico-Philisophicus
  2864.  
  2865. ------------------------
  2866. --  NB: You will have to adjust the spacing and line-continuation
  2867. characters to use this in a script. Get it off gaea if you want to save
  2868. time.
  2869.  
  2870. (*Example of text processing with AppleScript and the XCMD osax
  2871. This code and functionality is in the public domain. Please tell me if you find
  2872.  it useful
  2873. or have any comments.
  2874.         Jeremy Howard, jhoward@ariel.unimelb.edu.au
  2875.  
  2876. This program uses a contacts database in flat text format. Record delimiters are
  2877.  Return.
  2878. Field delimeters are Tab. Records may have double quotes around them. Each
  2879.  record contains three fields:
  2880. 1 -     Full name and company (or any other primary classification)
  2881. 2 -     A number of addresses, separated by ';'
  2882. 3 -     As many phone numbers or additional fields as required, with a ';' in
  2883.  between.
  2884.  
  2885. Sample record:
  2886. "Jeremy Howard, Howard Consulting", ";2/43 Barkly St., Carlton, 3053, Vic,
  2887.  AUST", ";;jhoward@ariel.unimelb.edu.au"
  2888. Semi-colons at beginning of field are due to exporting application-doesn't
  2889.  effect execution.*)
  2890.  
  2891. try
  2892.         close access myfile
  2893. on error
  2894. end try
  2895. set reDo to false
  2896. set copyWrite to "Instant Info, )J.P.Howard, 1994" & return & return
  2897. set myLookup to text returned of (display dialog copyWrite & "Who you lookin'
  2898.  for?" default answer "")
  2899. try
  2900.         read myfile from 1 to 2 --make sure it's not already open
  2901. on error
  2902.         set myfile to open for access alias "MegaDrive:Utilities:Now Contact*:Co
  2903. ntact
  2904.  Text"
  2905. end try
  2906. set myList to read myfile from 1
  2907. set myList to Textual Replace "\"" in myList by "" --in case there are quotes
  2908.  around each field
  2909. try
  2910.         set foundList to Textual Find myList for myLookup with All occurance wit
  2911. hout
  2912.  exact match --list of substring positions
  2913. on error --error returned if textual find returns nothing
  2914.         display dialog "No-one by that name: try again?" buttons {"Yes", "Nope"}
  2915.  default button "Yes"
  2916.         if button returned of the result is "Yes" then
  2917.                 run
  2918.                 return --avoid recursion
  2919.         else
  2920.                 close access myfile
  2921.                 return
  2922.         end if
  2923. end try
  2924. repeat with j from 1 to (count of items of foundList) --repeat with each found
  2925.  substring
  2926.         set myFound to item j of foundList --get position of this substring
  2927.         set gotIt to false --haven't found beginning of record yet
  2928.         set i to 0
  2929.         repeat until gotIt
  2930.                 set i to i + 1
  2931.                 if (character ((item 1 of myFound) - i)) of myList is return the
  2932. n --keep going
  2933.  back until beginning of record
  2934.                         set gotIt to true
  2935.                         set firstChar to (item 1 of myFound) - i --store index o
  2936. f first char
  2937.                 end if --BUG - this breaks if BOF is reached
  2938.         end repeat
  2939.         set lastChar to (item 1 of item 1 of (Textual Find myList for return sta
  2940. rting
  2941.  offset (item 1 of myFound) without exact match))
  2942.         --find end of record by finding first carriage return after substring
  2943.         set theListing to (characters from firstChar to lastChar of myList) as s
  2944. tring
  2945.  --get the record
  2946.         set myName to TextToList theListing delimiter tab --make it into a list
  2947.         set item 2 of myName to TextToList (item 2 of myName) delimiter ";" --cr
  2948. eate
  2949.  sublist of addresses
  2950.         set item 3 of myName to TextToList (item 3 of myName) delimiter ";" --cr
  2951. eate
  2952.  sublist of phoneNums
  2953.         set phoneNums to ""
  2954.         set theAddress to ""
  2955.         repeat with i from 1 to (count of items in item 3 of myName)
  2956.                 set phoneNums to phoneNums & item i of item 3 of myName & return
  2957.  --create
  2958.  string with phoneNums
  2959.         end repeat
  2960.         repeat with i from 1 to (count of items in item 2 of myName)
  2961.                 set theAddress to theAddress & item i of item 2 of myName & retu
  2962. rn --create
  2963.  string with addresses
  2964.         end repeat
  2965.         if theAddress - "" then set theAddress to "Address" & return & "--------
  2966. " &
  2967.  return & theAddress
  2968.         if phoneNums contains ":" then set phoneNums to "Telephone" & return &
  2969.  "----------" & return & phoneNums
  2970.         --add headers where relevent
  2971.         if (count of items of foundList) - j = 0 then
  2972.                 set keepOn to display dialog item 1 of myName & return & return
  2973. & theAddress &
  2974.  return & phoneNums buttons {"Done"} default button "Done"
  2975.                 --display result, no more found items so don't give 'next' optio
  2976. n
  2977.         else
  2978.                 set keepOn to display dialog item 1 of myName & return & return
  2979. & theAddress &
  2980.  return & phoneNums buttons {"Done", "Next"} default button "Next"
  2981.                 --display result, more items can be displayed
  2982.         end if
  2983.         if button returned of keepOn is "Done" then exit repeat
  2984. end repeat
  2985. close access myfile
  2986. =========================================================================
  2987. Date:         Fri, 4 Nov 1994 15:14:00 +1300
  2988. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2989. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  2990. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  2991.               NZ" <LDO@WAIKATO.AC.NZ>
  2992. Subject:      Re: Canvas 3.5 (was Re: Graphic Scripting & aete library
  2993.  
  2994. Ben Robbins <dennis@ESKIMO.COM> writes:
  2995.  
  2996. >Canvas 3.5 appears to be very scriptable.
  2997.  
  2998. Is it much improved over 3.0.x? I asked the distributor about scriptability
  2999. when 3.5 came out, but they didn't seem to think there was much improvement
  3000. in that area.
  3001.  
  3002. 3.0.x is pretty terrible. You can create objects and do some things to
  3003. selected objects, but there isn't any way to find out what you can select.
  3004.  
  3005. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  3006. Computer Services Dept                     fax: +64-7-838-4066
  3007. University of Waikato            electric mail: ldo@waikato.ac.nz
  3008. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  3009. =========================================================================
  3010. Date:         Thu, 3 Nov 1994 21:16:22 -0500
  3011. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3012. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3013. From:         CDMiller@AOL.COM
  3014. Subject:      Re: Graphic Scripting
  3015.  
  3016. Bill Bedford  writes:
  3017.  
  3018. >Can anyone tell me if there are scripting systems that will allow
  3019. >manipulation of graphic elements?
  3020. >
  3021. >I'm working mainly in Freehand 3.1 and produce drawings that resemble
  3022. >sheets of postage stamps, except that each 'stamp' may be either a
  3023. >different drawing or size. I find that it can take longer to arrange these
  3024. >elements on to the sheet than it takes to draw them. So I am looking for a
  3025. >system that will take the drudgery out of this chore.
  3026. >
  3027. >AFAIK none of the major graphics programs are scriptable, so AS can only
  3028. >be used to a limited extent.
  3029.  
  3030. Two major desktop publishing programs are scriptable. QuarkXpress is
  3031. AppleScriptable and PageMaker has its own scripting language and a very
  3032. limited AppleScript capability.
  3033.  
  3034. I'd suggest exporting your artwork from FreeHand as an EPS file and writing a
  3035. script in PageMaker to import, place and size them properly. PageMaker's
  3036. scripting language easy to learn.
  3037. =========================================================================
  3038. Date:         Fri, 4 Nov 1994 15:11:00 +1300
  3039. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3040. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3041. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  3042.               NZ" <LDO@WAIKATO.AC.NZ>
  3043. Subject:      Re: Graphic Scripting
  3044.  
  3045. Bill Bedford <billb@MOUSA.DEMON.CO.UK> writes:
  3046.  
  3047. >Can anyone tell me if there are scripting systems that will allow
  3048. >manipulation of graphic elements?
  3049.  
  3050. There are, if you're prepared to take more of a "toolkit" approach.
  3051.  
  3052. Among my many sets of externals for HyperCard, I have one for doing
  3053. QuickDraw graphics calls. I also have another for working with QuickDraw GX,
  3054. but that's not quite as complete as yet.
  3055.  
  3056. The idea behind these externals is that you can write your own code for
  3057. generating and manipulating graphics. The nice thing about HyperTalk is that
  3058. you can try things out immediately--you can even type individual system calls
  3059. into the message box, and see the results at once.
  3060.  
  3061. I'm not sure how to go about distributing these. I'm currently negotiating
  3062. licensing with one or two individual users.
  3063.  
  3064. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  3065. Computer Services Dept                     fax: +64-7-838-4066
  3066. University of Waikato            electric mail: ldo@waikato.ac.nz
  3067. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  3068. =========================================================================
  3069. Date:         Thu, 3 Nov 1994 23:53:00 CST
  3070. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3071. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3072. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  3073. Subject:      Re: Writing to a text file
  3074.  
  3075. >I have FM databases that call over a dozen different events at the click of
  3076. >a button.  I use it to export data, to sort information, to pass data to
  3077. >another database, verify information in a record before the user closes it
  3078. >etc.
  3079.  
  3080. I think you misunderstood what I was saying or, more likely, I didn't
  3081. communicate it very well. I'm basically using the same hack, except that
  3082. I'm running scripts in a folder via an applet. Filemaker can't just tell a
  3083. script to run, it has to use an intermediary applet. In other words, it's
  3084. not attachable. We're basically doing the same thing, though.
  3085.  
  3086. Dennis L. Whiteman
  3087. THE ULTIMATE FREELANCER
  3088. =========================================================================
  3089. Date:         Thu, 3 Nov 1994 23:22:56 -0800
  3090. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3091. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3092. From:         Preston Holmes <pholmes@UCSD.EDU>
  3093. Subject:      several Eudora questions:
  3094.  
  3095. Is there a way to 'explode' nicknames in the To field via AS, so that a:
  3096. get field "To" ... will return the email address of the nickname.  I
  3097. remember seeing something like alias expander/exploder that did this but I
  3098. don't think it was a script.
  3099.  
  3100. ---------------------
  3101. Is there a way to do this:
  3102.  
  3103. tell app "eudora"
  3104.         make new mailbox with name "test" at mail folder ""
  3105. end tell
  3106.  
  3107. This doesn't work, but is there a way?
  3108.  
  3109. ---------------------
  3110. How do you move one message from one mailbox to another?   I've tried:
  3111.  
  3112. move message 1 of mailbox "in" of mail folder "" to -|
  3113.                 mailbox "trash" of mail folder ""
  3114.  
  3115. and a couple other variation with out any luck, including using the same
  3116. location reference produced from
  3117.  
  3118. get location of mailbox "Trash" of mail folder "" --which is just an alias
  3119.  
  3120. ---------------------
  3121.  
  3122.  
  3123. I've got some good Eudora scripts to share and if I can get answers to
  3124. these questions they will be much more polished! ;-)
  3125.  
  3126. -Preston
  3127.  
  3128.  
  3129. --
  3130. Preston Holmes                       Neurobiology Unit
  3131. Dept. of Neuroscience, UCSD          Scripps Institution of Oceanography
  3132. pholmes@ucsd.edu                     NeuroWeb: "http://salk.edu/NeuroWeb/"
  3133. =========================================================================
  3134. Date:         Thu, 3 Nov 1994 23:34:27 -0800
  3135. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3136. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3137. From:         Jon Pugh <jonpugh@NETCOM.COM>
  3138. Subject:      Re: Graphic Scripting
  3139.  
  3140. CDMiller@AOL.COM wrote:
  3141. >Two major desktop publishing programs are scriptable. QuarkXpress is
  3142. >AppleScriptable and PageMaker has its own scripting language and a very
  3143. >limited AppleScript capability.
  3144.  
  3145. I think the scriptability of PageMaker is actually very complete and solid.
  3146. It's not AppleScript, but it is well thought out and very functional.  You
  3147. can access it via DoScript, which makes it ugly, but you can do some nice
  3148. stuff.
  3149.  
  3150. Jon
  3151. =========================================================================
  3152. Date:         Fri, 4 Nov 1994 16:39:56 +0900
  3153. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3154. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3155. From:         "Jonathan H. Roberts" <koyoeng@PO.IIJNET.OR.JP>
  3156. Subject:      Bill_Bedford_Freehand_Scripting
  3157.  
  3158. >From:    Bill Bedford <billb@MOUSA.DEMON.CO.UK>
  3159. >Subject: Graphic Scripting
  3160.  
  3161. >Can anyone tell me if there are scripting systems that will allow
  3162. >manipulation of graphic elements?
  3163.  
  3164. I have managed to create QuicKeys scripts under FreeHand 3.0 -
  3165. I had a few problems getting them to run smoothly - I think the
  3166. trick is to make sure that you put in the correct wait commands
  3167. for every operation. I was using Norton Utilities - Directory
  3168. Assistance to allow me to work on batches of images in different
  3169. folders. This proved to be a little buggy, but I'm not surprised.
  3170.  
  3171. I guess if it works with QuicKeys it should work for other scripting
  3172. utilities - I frankly can't justify the time to invest in learning another
  3173. language.
  3174.  
  3175. Good Luck,
  3176. Jonathan
  3177. =========================================================================
  3178. Date:         Thu, 3 Nov 1994 23:46:00 -0800
  3179. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3180. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3181. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3182. Subject:      Re: List of Lists
  3183.  
  3184. >How does one create a list of lists from an existing series of lists?
  3185. >
  3186. >I've can generate a series of lists based on rearranging a series of
  3187. >repeating fields from FileMaker Pro.
  3188. >
  3189. >However, for what I'm trying to do, I think I need to generate a list of
  3190. >lists.
  3191. >
  3192. >How do I do such a thing?
  3193. >
  3194. >I've tried such things as...
  3195. >
  3196. >     set totalList to totalList & newListElement
  3197. >
  3198. >But all I get is a never ending list.
  3199.  
  3200. Ah, the [sometimes unwanted] power of the & operator with lists.
  3201.  
  3202. Left to its own devices AppleScript behaves as you say...
  3203.  
  3204.    {1, 2} & 3
  3205.  
  3206. results in
  3207.    {1, 2, 3}
  3208.  
  3209. So does
  3210.  
  3211.    {1, 2} & {3}
  3212.  
  3213. But...
  3214.    {1, 2} & {{3}}
  3215.  
  3216. produces
  3217.    {1, 2, {3}}
  3218.  
  3219. -------------
  3220. Apple Event Manager (and, somewhat therefore, AppleScript) axioms:
  3221.  
  3222. 1.  An object is equivalent to a list of one item:  that object
  3223.  
  3224. 2.  A list of one item is equivalent to that item
  3225. -----------
  3226. An example of Axiom 2 is
  3227.  
  3228. {3} + 2
  3229.  
  3230. which returns 5
  3231.  
  3232.    --John
  3233.  
  3234. --
  3235. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3236. =========================================================================
  3237. Date:         Thu, 3 Nov 1994 23:46:04 -0800
  3238. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3239. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3240. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3241. Subject:      Re: Recordable Applications
  3242.  
  3243. >>Can anyone tell me how to find out what apps are recordable, not merely
  3244. >>scriptable? The only recordable apps I know of now are:
  3245. >> System 7.5 Finder
  3246. >> Scriptable Text Editor
  3247. >> PhotoFlash
  3248. >
  3249. >>As a beginner, I find it much easier to work with recordable apps -- I can
  3250. >>basically make my own example scripts.
  3251. >
  3252. >>Has anyone been working with other recordable applications? Which ones? TIA!
  3253. >
  3254. >Apple publishes the "AppleScript Guide to Scriptable Applications" which lists
  3255. >the capabilities of all apps that support AppleScript.  It's part number is
  3256. >L0592LL/A.
  3257.  
  3258. Well, yes, but, as a published document, it is an always-obsolete snapshot
  3259. in time.  [Most apps shown don't lose capabilities, although they may lose
  3260. bugs scriptors have learned to work around.]
  3261.  
  3262.    --John
  3263.  
  3264. --
  3265. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3266. =========================================================================
  3267. Date:         Thu, 3 Nov 1994 23:46:08 -0800
  3268. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3269. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3270. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3271. Subject:      Re: Recordable Applications
  3272.  
  3273. >Can anyone tell me how to find out what apps are recordable, not merely
  3274. >scriptable? The only recordable apps I know of now are:
  3275. > System 7.5 Finder
  3276. > Scriptable Text Editor
  3277. > PhotoFlash
  3278. >
  3279. >As a beginner, I find it much easier to work with recordable apps -- I can
  3280. >basically make my own example scripts.
  3281. >
  3282. >Has anyone been working with other recordable applications? Which ones? TIA!
  3283.  
  3284. StuffIt Deluxe and SITcomm from Aladdin (StuffIt Deluxe 3.5 is a
  3285. worth-while upgrade, BTW).
  3286.  
  3287. InfoDepot.
  3288.  
  3289. The easy way is to turn on recording in a script editor and do a few things
  3290. in the application which "obviously should be scriptable".
  3291.  
  3292. MicroSoft Excel 5.0 (just followed my own advice, and tried it, getting):
  3293.  
  3294. tell application "Microsoft Excel"
  3295.         activate
  3296.         set FormulaR1C1 of ActiveCell to "5"
  3297.         Select Range "R2C1"
  3298.         set FormulaR1C1 of ActiveCell to "7"
  3299.         Select Range "R3C1"
  3300.         set FormulaR1C1 of ActiveCell to "=R[-2]C+R[-1]C"
  3301.         Select Range "R4C1"
  3302.         set IsVisible of Toolbar 6 to true
  3303.         set IsVisible of Toolbar 6 to false
  3304. end tell
  3305.  
  3306.  
  3307. Toolbar 6 is the Tip Wizard thing.  --John
  3308.  
  3309. --
  3310. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3311. =========================================================================
  3312. Date:         Thu, 3 Nov 1994 23:46:12 -0800
  3313. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3314. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3315. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3316. Subject:      Re: Graphic Scripting
  3317.  
  3318. >Can anyone tell me if there are scripting systems that will allow
  3319. >manipulation of graphic elements?
  3320. >
  3321. >I'm working mainly in Freehand 3.1 and produce drawings that resemble
  3322. >sheets of postage stamps, except that each 'stamp' may be either a
  3323. >different drawing or size. I find that it can take longer to arrange these
  3324. >elements on to the sheet than it takes to draw them. So I am looking for a
  3325. >system that will take the drudgery out of this chore.
  3326. >
  3327. > AFAIK none of the major graphics programs are scriptable, so AS can only
  3328. >be used to a limited extent.
  3329.  
  3330. Canvas is scriptable (and has been for a long time...starting before
  3331. AppleScript came out, so it could be scripted using Frontier).  Because it
  3332. was early, there seem to be holes in the scripting support.
  3333.  
  3334.    --John
  3335.  
  3336. --
  3337. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3338. =========================================================================
  3339. Date:         Thu, 3 Nov 1994 23:46:24 -0800
  3340. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3341. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3342. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3343. Subject:      Re: Graphic Scripting & aete library
  3344.  
  3345. >On Thu, 3 Nov 1994, Bill Bedford wrote:
  3346. >
  3347. >>  AFAIK none of the major graphics programs are scriptable, so AS can only
  3348. >> be used to a limited extent.
  3349. >
  3350. >Canvas 3.5 appears to be very scriptable.
  3351. >
  3352. >Which brings me to another thought.  Would it be useful to have a
  3353. >location where aete's from apps (commercial and otherwise) could be
  3354. >posted?  An aete library where one could browse to see if there is an app
  3355. >around with the scripting support one is looking for?  (okay, I admit it
  3356. >- I think it would be great)
  3357. >
  3358. >Saving the aete resource to a seperate file with ResEdit is a simple
  3359. >matter, and it saves disk space anyway for apps you don't want to keep
  3360. >installed.
  3361. >
  3362. >Maybe beloved gaea would be willing to provide a directory?
  3363.  
  3364. You would need Copyright clearance for each and every 'aete' resource in
  3365. the collection, from the copyright owner.  The only exception would be true
  3366. "Public Domain" apps (not "freeware", but true Public Domain).
  3367.  
  3368. Not worth the trouble.  --John
  3369.  
  3370. --
  3371. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3372. =========================================================================
  3373. Date:         Fri, 4 Nov 1994 06:59:40 -0600
  3374. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3375. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3376. From:         Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
  3377. Subject:      Re: Recordable Applications
  3378.  
  3379. >Can anyone tell me how to find out what apps are recordable, not merely
  3380. >scriptable? The only recordable apps I know of now are:
  3381. > System 7.5 Finder
  3382. > Scriptable Text Editor
  3383. > PhotoFlash
  3384. >
  3385. >As a beginner, I find it much easier to work with recordable apps -- I can
  3386. >basically make my own example scripts.
  3387.  
  3388. MacHTTP is recordable, but not very exciting to record. I'm not sure why
  3389. more of Apple's own software isn't scriptable and recordable. It's tedious
  3390. to do, but not particularly difficult.
  3391.  
  3392. -----------------------------------------------------------------------
  3393. Chuck Shotton
  3394. cshotton@oac.hsc.uth.tmc.edu                           "I am NOT here."
  3395. =========================================================================
  3396. Date:         Fri, 4 Nov 1994 09:00:08 EST
  3397. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3398. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3399. From:         William Rose <billr@JAGUAR.NCSL.NIST.GOV>
  3400. Organization: National Institute of Standards and Technology formerly National
  3401.               Bureau of Standards
  3402. Subject:      Newbie Question
  3403.  
  3404. Hello:
  3405.  
  3406. Having recently begun working with Apple Script and subscribing to this
  3407. group, I find myself with some questions.  First, what is the ftp site
  3408. for gaes (sp)?  Secondly, I have "The Tao of Applescript", so are there
  3409. any recommendations of books to get that would be better or supplement
  3410. this?
  3411.  
  3412. Thanks...
  3413.  
  3414.  
  3415. --
  3416. William Rose, Ph.D.                     |Email: billr@jaguar.ncsl.nist.gov
  3417. Advanced Systems Divison                |Phone:  301/975-4451
  3418. National Institute                      |FAX:    301/670-0939
  3419.   of Standards and Technology           |
  3420. Room A216 Building 225 (Technology)     |
  3421. Gaithersburg, MD 20899                  |
  3422. =========================================================================
  3423. Date:         Fri, 4 Nov 1994 09:09:44 -0500
  3424. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3425. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3426. From:         "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU>
  3427. Subject:      AEResolve
  3428.  
  3429. I'm attempting to take a non-scriptable app I sell, which runs about
  3430. 100K lines of C code, and make it scriptable.  I'm struggling
  3431. to understand AEResolve and how it works.
  3432.  
  3433. I have IM and I bought the AppleScript SDK and Events Registry from
  3434. APDA.  But I can't find a coherent description of how AEResolve and
  3435. the object model work together with NewOSLAccessorProc and my
  3436. accessor functions.
  3437.  
  3438. I am either missing a piece of documentation, or I'm not looking
  3439. at the right place in what I've got, or I'm not understanding what
  3440. I'm reading.  Suggestions as to which it might be?
  3441. =========================================================================
  3442. Date:         Fri, 4 Nov 1994 10:07:48 -0500
  3443. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3444. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3445. From:         Jason Frankovitz <jfrankov@NICKEL.UCS.INDIANA.EDU>
  3446. Subject:      Re: List of Lists
  3447.  
  3448. >>>>> "Charles" == Automatic digest processor <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
  3449.  writes:
  3450.  
  3451.     Charles> Date: Thu, 3 Nov 1994 08:03:27 -0500 From: Charles Bruce
  3452.     Charles> Pelto <CPelto@AOL.COM> Subject: List of Lists
  3453.  
  3454.     Charles> How does one create a list of lists from an existing
  3455.     Charles> series of lists?
  3456.  
  3457.     Charles> I've can generate a series of lists based on rearranging
  3458.     Charles> a series of repeating fields from FileMaker Pro.
  3459.  
  3460.     Charles> However, for what I'm trying to do, I think I need to
  3461.     Charles> generate a list of lists.
  3462.  
  3463.     Charles> How do I do such a thing?
  3464.  
  3465.     Charles> I've tried such things as...
  3466.  
  3467.     Charles>      set totalList to totalList & newListElement
  3468.  
  3469.     Charles> But all I get is a never ending list.
  3470.  
  3471.     Charles> Help...
  3472.  
  3473.     Charles> Thanks,
  3474.  
  3475.     Charles> Chuck
  3476.  
  3477. Try:
  3478.  
  3479. set totalList to {totalList} & {newListElement}
  3480.  
  3481. the curly braces do the trick.
  3482.  
  3483. Jason
  3484. =========================================================================
  3485. Date:         Fri, 4 Nov 1994 09:56:14 -0600
  3486. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3487. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3488. From:         Fred Terry <pfterry@LKS.CSI.COM>
  3489. Subject:      Re: Newbie Question
  3490. In-Reply-To:  Your message of "Fri, 04 Nov 94 09:00:08 EST"
  3491.  
  3492. William,
  3493.  
  3494. >Having recently begun working with Apple Script and subscribing to this
  3495. >group, I find myself with some questions.  First, what is the ftp site
  3496. >for gaes (sp)?  Secondly, I have "The Tao of Applescript", so are there
  3497. >any recommendations of books to get that would be better or supplement
  3498. >this?
  3499.  
  3500. Others may respond on the list, but I wanted to give you a quick response.
  3501.  
  3502. The address is gaea.kgs.ukans.edu and you'll find scripts, addons, osaxen, and
  3503. other goodies in the applescript directory. If you are using Anarchie, one of
  3504. the bookmarks is already set up for it. If you have any problems, let me
  3505. know--I'm the maintainer.
  3506.  
  3507. In addition to the Tao, Danny Goodman also has a book. And there are also the
  3508. Apple manuals that come with the Scripter's and Developer's kits. You'll find
  3509. more information about them in the FAQ which is in
  3510.  
  3511. ftp://gaea.kgs.ukans.edu/applescript/00applescript.faq
  3512.  
  3513. If you pick up a copy today, you may want to check again after the weekend.
  3514. I'll be updating it.
  3515.  
  3516. Hope this helps.
  3517.  
  3518. pf
  3519.  
  3520.  
  3521.  
  3522. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3523. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  3524. =========================================================================
  3525. Date:         Fri, 4 Nov 1994 11:02:34 -0500
  3526. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3527. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3528. From:         "David Habermann, DTRL, 517 636-8632" <habermann@DOW.COM>
  3529. Subject:      Scripting MacHTTP
  3530.  
  3531. Fellow scripters:
  3532.  
  3533. I am trying to write a script to, when requested, activate TR-WWW (a searching
  3534. application), bring it to the foreground (speed improvement), set the MacHTTP
  3535. Pig_Delay to a low value and then perform a search using TR-WWW.  After TR-WWW
  3536. finishes, the results should be sent back to my script for forwarding to
  3537. MacHTTP and then to the client.  OK?  The script is below:
  3538.  
  3539. on run
  3540.  
  3541.         set path_args to ""
  3542.         set post_args to
  3543. "__Find=test&__DOCUMENTSET=SPE_Demo&__ResultsMod=relevance&__MaxHits=40&__Search
  3544. Mode=OR&__NearValue=40"
  3545.  
  3546.         try
  3547.  
  3548.                 set crlf to (ASCII character 13) & (ASCII character 10)
  3549.  
  3550.                 tell application "tr-www.cgi"
  3551.                         activate
  3552.                         Search Doc path_args for post_args
  3553.                         return result
  3554.                 end tell
  3555.  
  3556.         on error errText number errNum
  3557.  
  3558.                 return "HTTP/1.0 200 OK" & crlf & "Server: MacHTTP" & crlf & ,
  3559.                         "MIME-Version: 1.0" & crlf & ,
  3560.                         "Content-type: text/html" & crlf & crlf &,
  3561.                         "ERROR: " & errNum & " " & errText
  3562.  
  3563.         end try
  3564.  
  3565. end run
  3566.  
  3567. When submitting a form to the above script, TR-WWW activates, loads the set of
  3568. files requested, searches them, and then my script returns the following error
  3569. message back to the client:
  3570.  
  3571. ERROR: 1 tr-www.cgi got an error: An error of type 1 has occurred.
  3572.  
  3573. Thanks again for any help you can give me.
  3574.  
  3575. Dave Habermann
  3576. Dow Chemical Company
  3577. =========================================================================
  3578. Date:         Fri, 4 Nov 1994 10:13:36 +0000
  3579. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3580. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3581. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  3582. Subject:      Re: Newbie Question
  3583.  
  3584.  First, what is the ftp site
  3585. >for gaes (sp)? ftp site:
  3586. gaea.kgs.ukans.edu/applescript
  3587.  
  3588. ==============================================================
  3589. Jaeson M. Engle                                                     (aka
  3590. Colaks    Kyraden    GodKing)
  3591. xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
  3592. xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
  3593. jme@josaiah.sewanee.edu                Elomense(MUD): josaiah.sewanee.edu 1999
  3594. ==============================================================
  3595. =========================================================================
  3596. Date:         Fri, 4 Nov 1994 08:34:54 -0800
  3597. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3598. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3599. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3600. Subject:      Re: Graphic Scripting
  3601.  
  3602. >CDMiller@AOL.COM wrote:
  3603. >>Two major desktop publishing programs are scriptable. QuarkXpress is
  3604. >>AppleScriptable and PageMaker has its own scripting language and a very
  3605. >>limited AppleScript capability.
  3606. >
  3607. >I think the scriptability of PageMaker is actually very complete and solid.
  3608. >It's not AppleScript, but it is well thought out and very functional.  You
  3609. >can access it via DoScript, which makes it ugly, but you can do some nice
  3610. >stuff.
  3611.  
  3612. There's also a well done Frontier glue table, which allows scripting
  3613. PageMaker from Frontier, with the PageMaker scripting documentation as the
  3614. primary reference.  It's on gaea, somewhere in /frontier.  This was a
  3615. collaboration done across time and nation (one of the conspirators <er,
  3616. collaborators> is Canadian).
  3617.  
  3618.    --John
  3619.  
  3620. --
  3621. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3622. =========================================================================
  3623. Date:         Fri, 4 Nov 1994 10:59:30 -0600
  3624. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3625. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3626. From:         Bill Maguire <billm@CS.UREGINA.CA>
  3627. Subject:      Re: Recordable Applications
  3628. In-Reply-To:  <199411041300.HAA05030@MERCURY.CS.UREGINA.CA> from "Chuck
  3629.               Shotton" at Nov 4, 94 06:59:40 am
  3630.  
  3631. > >Can anyone tell me how to find out what apps are recordable, not
  3632. > >scriptable? The only recordable apps I know of now are:
  3633. > > System 7.5 Finder
  3634. > > Scriptable Text Editor
  3635. > > PhotoFlash
  3636. > >
  3637. > >As a beginner, I find it much easier to work with recordable apps -- I can
  3638. > >basically make my own example scripts.
  3639. >
  3640. Does anyone know if ClarisWorks 3.0 will be recordable?  According to the
  3641. Claris person I talked to, he said it was scriptable but didn't know if
  3642. it was also recordable.  By the way, does anyone know if ClarisWorks 3.0
  3643. supports the drag-and-drop in System 7.5?
  3644.  
  3645. Thanks
  3646.  
  3647. Bill
  3648.  
  3649. -----------------------------------------------------------------------------
  3650. Bill Maguire                    Internet:
  3651. Bell-Northern Research                  stud1d42@bnr.ca
  3652. Ottawa, Ontario                         billm@cs.uregina.ca
  3653. Canada                                  Mac.Canuck@eworld.com
  3654. -----------------------------------------------------------------------------
  3655. =========================================================================
  3656. Date:         Fri, 4 Nov 1994 08:59:55 -0800
  3657. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3658. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3659. From:         Kevin Purcell <kevinpu@ATM.COM>
  3660. Subject:      Re: List of Lists
  3661.  
  3662. >>>>>> "Charles" == Automatic digest processor <LISTSERV@DARTCMS1.DARTMOUTH.EDU>
  3663. > writes:
  3664. >
  3665. >    Charles> Date: Thu, 3 Nov 1994 08:03:27 -0500 From: Charles Bruce
  3666. >    Charles> Pelto <CPelto@AOL.COM> Subject: List of Lists
  3667. >
  3668. >    Charles> How does one create a list of lists from an existing
  3669. >    Charles> series of lists?
  3670. >
  3671. >    Charles> I've can generate a series of lists based on rearranging
  3672. >    Charles> a series of repeating fields from FileMaker Pro.
  3673. >
  3674. >    Charles> However, for what I'm trying to do, I think I need to
  3675. >    Charles> generate a list of lists.
  3676. >
  3677. >    Charles> How do I do such a thing?
  3678. >
  3679. >    Charles> I've tried such things as...
  3680. >
  3681. >    Charles>      set totalList to totalList & newListElement
  3682. >
  3683. >    Charles> But all I get is a never ending list.
  3684. >
  3685. >    Charles> Help...
  3686. >
  3687. >    Charles> Thanks,
  3688. >
  3689. >    Charles> Chuck
  3690. >
  3691. >Try:
  3692. >
  3693. >set totalList to {totalList} & {newListElement}
  3694. >
  3695. >the curly braces do the trick.
  3696. >
  3697. >Jason
  3698.  
  3699. As I said:
  3700.  
  3701. set totalList to {totalList, newListElement}
  3702.  
  3703. is the simplest way to do it.
  3704.  
  3705. Even AppleScript can be elegant every once in a while.
  3706.  
  3707. Kevin Purcell      Attachmate Corp        (206) 649-6489
  3708. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  3709. =========================================================================
  3710. Date:         Fri, 4 Nov 1994 09:29:00 -0800
  3711. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3712. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3713. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  3714. Subject:      Re: AEResolve
  3715.  
  3716. >I'm attempting to take a non-scriptable app I sell, which runs about
  3717. >100K lines of C code, and make it scriptable.  I'm struggling
  3718. >to understand AEResolve and how it works.
  3719. >
  3720.         Get yourself a copy of the Develop article by Richard Clark!!
  3721.  
  3722.  
  3723. Leonard
  3724.  
  3725. -----------------------------------------------------------------------------
  3726. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  3727. Director of Engineering                 AppleLink:      MACgician
  3728. Aladdin Systems, Inc.                   GEnie:          MACgician
  3729. =========================================================================
  3730. Date:         Fri, 4 Nov 1994 09:28:57 -0800
  3731. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3732. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3733. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  3734. Subject:      Re: Graphic Scripting & aete library
  3735.  
  3736. >You would need Copyright clearance for each and every 'aete' resource in
  3737. >the collection, from the copyright owner.  The only exception would be true
  3738. >"Public Domain" apps (not "freeware", but true Public Domain).
  3739. >
  3740.         Yeah, the legalities are kinda interesting on this one.  The format
  3741. of an 'aete', since it is public isn't copyrightable.  The standard suite
  3742. names, etc. can't be since they are "standard", but one could argue that
  3743. the "private" stuff and the combination could be.
  3744.  
  3745.         However, I think that software copy of the dictionary might be OK...
  3746.  
  3747.  
  3748.         Personally, you can put up StuffIt's 'aete' or dictionary (please
  3749. use the new 3.5 one if you are going to do it - it's SO MUCH NICER!).
  3750.  
  3751.  
  3752. Leonard
  3753.  
  3754. -----------------------------------------------------------------------------
  3755. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  3756. Director of Engineering                 AppleLink:      MACgician
  3757. Aladdin Systems, Inc.                   GEnie:          MACgician
  3758. =========================================================================
  3759. Date:         Fri, 4 Nov 1994 09:38:05 -0800
  3760. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3761. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3762. From:         Steve Michel <michel@NETCOM.COM>
  3763. Subject:      Re: Recordable Applications
  3764.  
  3765. >Does anyone know if ClarisWorks 3.0 will be recordable?  According to the
  3766. >Claris person I talked to, he said it was scriptable but didn't know if
  3767. >it was also recordable.  By the way, does anyone know if ClarisWorks 3.0
  3768. >supports the drag-and-drop in System 7.5?
  3769.  
  3770. ClarisWorks 3.0 is not scriptable and thus not recordable.
  3771. =========================================================================
  3772. Date:         Fri, 4 Nov 1994 09:43:24 -0800
  3773. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3774. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3775. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  3776. Subject:      Re: AEResolve
  3777.  
  3778. >I'm attempting to take a non-scriptable app I sell, which runs about
  3779. >100K lines of C code, and make it scriptable.  I'm struggling
  3780. >to understand AEResolve and how it works.
  3781. >
  3782. >I have IM and I bought the AppleScript SDK and Events Registry from
  3783. >APDA.  But I can't find a coherent description of how AEResolve and
  3784. >the object model work together with NewOSLAccessorProc and my
  3785. >accessor functions.
  3786. >
  3787. >I am either missing a piece of documentation, or I'm not looking
  3788. >at the right place in what I've got, or I'm not understanding what
  3789. >I'm reading.  Suggestions as to which it might be?
  3790.  
  3791.  
  3792. Apple Developer University has a self-taught course on CD which covers
  3793. this...the version I have was early:  I understand the current version is
  3794. significantly improved.
  3795.  
  3796. Also, an article in "develop" magazine:
  3797.  
  3798. Issue 10 (May 1992):  "Apple Event Objects and You" by Richard Clark.
  3799.  
  3800. Also of interest (but not directly applicable to your app, since it deal
  3801. with an object-oriented approach)
  3802.  
  3803. Issue 12 (Dec 1992): "Better Apple Event Coding Through Objects" by Eric
  3804. Berdahl.
  3805.  
  3806. -----------
  3807. If it makes sense for your app, please make it attachable, too.  And
  3808. tinkerable, if that makes sense.  The former lets your users do things like
  3809. fire a script (any OSA language) when they make a change to a cell in a
  3810. spreadsheet (cf, InfoDepot)...the latter lets your user use a script to
  3811. change the behavior of a menu item:  New might be customized by running a
  3812. script which sets up conditions the user always wants.
  3813.  
  3814. Both are really pretty easy...in fact if you are starting from scratch (not
  3815. your situation here), you can fire scripts to do much of the work your
  3816. app's UI triggers, even right out of the box.
  3817.  
  3818. For some of this stuff:
  3819. develop Issue 18 (Jun 1994) "Programming for Flexibility:  The Open
  3820. Scripting Architecture" by Paul G. Smith
  3821.  
  3822. -----------
  3823. There have also been articles in MacTech, but I don't have references handy.
  3824.  
  3825. For $30 per year, you should--IMHO--have "develop" as part of your basic
  3826. programming equipment.  4 issues, each with a CD...each CD contains all
  3827. back issues (fixed, in many cases), and the example code from all the
  3828. issues (fixed, in many cases).  And a bunch of other useful stuff.  For
  3829. example, because they ran QuickDraw GX articles early on, the "develop" CD
  3830. was a source of the QD GX development stuff at a time when it wasn't on the
  3831. developer CD series, but only on seeds to Associates and Partners.
  3832.  
  3833.    --John
  3834.  
  3835. --
  3836. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  3837. =========================================================================
  3838. Date:         Fri, 4 Nov 1994 12:47:09 -0500
  3839. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3840. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3841. From:         "Shilling.Jeff" <shilling@NIEHS.NIH.GOV>
  3842. Subject:      Unmounting Volumes
  3843.  
  3844. Using the MountVol OASX I was able to write my first AppleScript. My script
  3845. mounts a bunch of volumes necessary to run a database.
  3846.  
  3847. I would like to be able to dismount the volumes after the user is finished with
  3848. them. Is there an OSAX to do this? Or any other way that does not involve the
  3849. scriptable Finder? I say without the scriptable Finder because we have a large
  3850. installed base that will be using this script.
  3851.  
  3852. All suggestions will be helpful.
  3853.  
  3854. Thanks,
  3855.  
  3856. Jeff
  3857. =========================================================================
  3858. Date:         Fri, 4 Nov 1994 09:00:05 -0800
  3859. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3860. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3861. From:         Kevin Purcell <kevinpu@ATM.COM>
  3862. Subject:      Re: AEResolve
  3863.  
  3864. >I'm attempting to take a non-scriptable app I sell, which runs about
  3865. >100K lines of C code, and make it scriptable.  I'm struggling
  3866. >to understand AEResolve and how it works.
  3867. >
  3868. >I have IM and I bought the AppleScript SDK and Events Registry from
  3869. >APDA.  But I can't find a coherent description of how AEResolve and
  3870. >the object model work together with NewOSLAccessorProc and my
  3871. >accessor functions.
  3872. >
  3873. >I am either missing a piece of documentation, or I'm not looking
  3874. >at the right place in what I've got, or I'm not understanding what
  3875. >I'm reading.  Suggestions as to which it might be?
  3876.  
  3877. If you haven't read the following Develop articles you should:
  3878.  
  3879. Apple Event Objects and You (issue 10) and
  3880.  
  3881. Better AppleEvent coding through Objects (issue 12)
  3882.  
  3883. You can subscribe to Develop via APDA (800) 272-2732 for $30 a year
  3884. domestic, $50 a year international. Quartlerly with a CD. Each CD contains
  3885. all the back issues and all the sample code. A good deal.
  3886.  
  3887. You can also find all the Develop back copies and code on a Developer's CD
  3888. (probably the documentation issue)
  3889.  
  3890. Kevin Purcell      Attachmate Corp        (206) 649-6489
  3891. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  3892. =========================================================================
  3893. Date:         Fri, 4 Nov 1994 10:07:34 -0800
  3894. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3895. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3896. From:         David Lewis <lewis@NETCOM.COM>
  3897. Subject:      Re: several Eudora questions:
  3898.  
  3899. >How do you move one message from one mailbox to another?   I've tried:
  3900. >
  3901. >move message 1 of mailbox "in" of mail folder "" to -|
  3902. >                mailbox "trash" of mail folder ""
  3903. >
  3904.     move message 8 of mailbox "In" of mail folder "" to =AC
  3905.         end of mailbox "Scripting" of mail folder ""
  3906.  
  3907. David
  3908.  
  3909. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  3910. =========================================================================
  3911. Date:         Fri, 4 Nov 1994 12:21:26 -0600
  3912. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3913. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3914. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  3915. Subject:      Re: Newbie Question
  3916.  
  3917. >Hello:
  3918. >
  3919. >Having recently begun working with Apple Script and subscribing to this
  3920. >group, I find myself with some questions.  First, what is the ftp site
  3921. >for gaes (sp)?
  3922.  
  3923. ftp://gaea.kgs.ukans.edu/applescript/
  3924.  
  3925.  
  3926.  Secondly, I have "The Tao of Applescript", so are there
  3927. >any recommendations of books to get that would be better or supplement
  3928. >this?
  3929. >
  3930.  
  3931. Also The Complete Applescript HandBook.
  3932.  
  3933.  
  3934.  
  3935. Best-
  3936.  
  3937. Greg
  3938. =========================================================================
  3939. Date:         Fri, 4 Nov 1994 14:43:00 CST
  3940. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3941. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3942. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  3943. Subject:      Re: Recordable Applications
  3944.  
  3945. >Well, yes, but, as a published document, it is an always-obsolete snapshot
  3946. >in time.  [Most apps shown don't lose capabilities, although they may lose
  3947. >bugs scriptors have learned to work around.]
  3948.  
  3949. Or possibly a vision of future time. My copy of "AppleScript Guide to
  3950. Scriptable Applications" included MicroSoft Word 6.0 in January even though
  3951. the app has only been shipping a month or two. Several other apps aren't
  3952. yet shipping or haven't added some of the features in the guide. Others may
  3953. be have been sold or killed. And many news apps aren't included.
  3954.  
  3955. Dennis L. Whiteman
  3956. THE ULTIMATE FREELANCER
  3957.  
  3958. ultimate@mail.icon.net
  3959. =========================================================================
  3960. Date:         Fri, 4 Nov 1994 14:43:00 CST
  3961. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3962. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3963. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  3964. Subject:      Re: Newbie Question
  3965.  
  3966. >Having recently begun working with Apple Script and subscribing to this
  3967. >group, I find myself with some questions.  First, what is the ftp site
  3968. >for gaes (sp)?  Secondly, I have "The Tao of Applescript", so are there
  3969. >any recommendations of books to get that would be better or supplement
  3970. >this?
  3971.  
  3972. ftp://gaea.kgs.ukans.edu/
  3973.  
  3974. I've been very pleased with "The Complete AppleScript Handbook" by Danny
  3975. Goodman, who frequents this area. A second edition is due in January.
  3976.  
  3977. Dennis L. Whiteman
  3978. THE ULTIMATE FREELANCER
  3979.  
  3980. ultimate@mail.icon.net
  3981. =========================================================================
  3982. Date:         Fri, 4 Nov 1994 10:49:46 -0800
  3983. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3984. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  3985. From:         Mike Shaff <shaff@QUILTY.STANFORD.EDU>
  3986. Subject:      Graphic Scripting
  3987. In-Reply-To:  "Lawrence D'Oliveiro, Waikato University, Hamilton,
  3988.               NZ"'s message of Fri,
  3989.               4 Nov 1994 15:11:00 +1300 <9411040312.AA26715@quilty.Stanford.EDU>
  3990.  
  3991. Greetings,
  3992.  
  3993.         [HyperTalk]  you can even type individual system calls into the message
  3994.         box, and see the results at once.
  3995.  
  3996. Wow!  Really, I think you have an awesome potential there.  I love the speed of
  3997. compiled code, but I sure miss an interpreter for working out things.  I must
  3998. admit, I miss Lisp.
  3999.  
  4000. Can you tell more about what is/isn't supported in your implementation?
  4001.  
  4002. Thanks!
  4003.  
  4004. Michael
  4005.  
  4006. P.S.  Your post brightened my morning.
  4007. =========================================================================
  4008. Date:         Fri, 4 Nov 1994 11:07:05 -0800
  4009. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4010. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4011. From:         Edmund Lai <lai@APPLE.COM>
  4012. Subject:      Re: AEResolve
  4013.  
  4014. >I'm attempting to take a non-scriptable app I sell, which runs about
  4015. >100K lines of C code, and make it scriptable.  I'm struggling
  4016. >to understand AEResolve and how it works.
  4017. >
  4018. >I have IM and I bought the AppleScript SDK and Events Registry from
  4019. >APDA.  But I can't find a coherent description of how AEResolve and
  4020. >the object model work together with NewOSLAccessorProc and my
  4021. >accessor functions.
  4022. >
  4023. >I am either missing a piece of documentation, or I'm not looking
  4024. >at the right place in what I've got, or I'm not understanding what
  4025. >I'm reading.  Suggestions as to which it might be?
  4026.  
  4027. If you have the AppleScript SDK, you should have access to a sample
  4028. program called CoreSample in the Sample code folder. That may be
  4029. a godd place to start.
  4030.  
  4031.  
  4032. /* Disclaimer: All statments and opinions expressed are my own */
  4033. /* Edmund K. Lai                                               */
  4034. /* Apple Computer, MS303-3A                                    */
  4035. /* 20525 Mariani Ave,                                          */
  4036. /* Cupertino, CA 95014                                         */
  4037. /* (408)974-6272                                               */
  4038. zW@h9cOi
  4039. =========================================================================
  4040. Date:         Fri, 4 Nov 1994 11:44:41 -0800
  4041. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4042. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4043. From:         Kevin Purcell <kevinpu@ATM.COM>
  4044. Subject:      Re: Newbie Question
  4045.  
  4046. >>Hello:
  4047. >>
  4048. >>Having recently begun working with Apple Script and subscribing to this
  4049. >>group, I find myself with some questions.  First, what is the ftp site
  4050. >>for gaes (sp)?
  4051. >
  4052. >ftp://gaea.kgs.ukans.edu/applescript/
  4053. >
  4054. >
  4055. > Secondly, I have "The Tao of Applescript", so are there
  4056. >>any recommendations of books to get that would be better or supplement
  4057. >>this?
  4058. >>
  4059. >
  4060. >Also The Complete Applescript HandBook.
  4061.  
  4062. Get the AppleScript Language Guide and the AppleScript Scripting Additions
  4063. Guide (both in the AppleScript Scripter's Kit) published by Addison Wesley.
  4064.  
  4065. These are much better references than either Handbook (sorry Danny!) or the
  4066. Tao, especially if you need the real answer.
  4067.  
  4068. Kevin Purcell      Attachmate Corp        (206) 649-6489
  4069. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  4070. =========================================================================
  4071. Date:         Fri, 4 Nov 1994 14:53:18 CST
  4072. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4073. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4074. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  4075. Subject:      Re: Recordable Applications
  4076.  
  4077. >ClarisWorks 3.0 is not scriptable and thus not recordable.
  4078.  
  4079. Well, this is very strange. I opened the ClarisWorks 2.0(something) in
  4080. the Script Editor and tried to script it which resulted in some
  4081. system freezes or application quits. I figured a future version would
  4082. have improved scripting capabilities. I also figured the above answer
  4083. was wrong. So I tried to open the ClarisWorks dictionary (this time
  4084. version 2.1v4; no 3.0 yet) and discovered the dictionary was no longer
  4085. there.
  4086.  
  4087. Very interesting...
  4088.  
  4089. Peter
  4090. =========================================================================
  4091. Date:         Fri, 4 Nov 1994 19:15:24 GMT
  4092. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4093. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4094. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  4095. Organization: commstalk, & Full Moon Software
  4096. Subject:      Re: Graphic Scripting & aete library
  4097.  
  4098. In Regards to your letter <199411032228.AA04803@exnet.com>:
  4099. >
  4100. > I've thought about (and even started) a list of the commands in different
  4101. > apps. Wouldn't that be a little better than the resource itself? Would we be
  4102. > violating any copyrights by posting aete's? I'd be willing to provide a place
  4103. > for it on gaea.
  4104. >
  4105.  
  4106. Copyright issues apart posting the aete's would be a lot more use:
  4107. that would allows us developers to try & make sure we don't
  4108. accidentally trample on other developers' usage of apple event ids,
  4109. class ids, property ids, and so on. Currently there's no way at all to
  4110. check this out reliably.
  4111.  
  4112.  
  4113. best regards, Paul
  4114.  
  4115. +------------------------------------------------------------------+
  4116. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  4117. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  4118. | & Full Moon Software, Inc               || US ph: 408 253 7199
  4119. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  4120. =========================================================================
  4121. Date:         Fri, 4 Nov 1994 14:17:07 -0800
  4122. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4123. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4124. From:         Doug Baron <userland@NETCOM.COM>
  4125. Subject:      Re: Recordable Applications
  4126.  
  4127. >>Can anyone tell me how to find out what apps are recordable, not merely
  4128. >>scriptable? The only recordable apps I know of now are:
  4129. >
  4130. >Excel 5.0
  4131. >Word 6.0 (but it spits out DoScripts with Basic commands)
  4132. >Stuffit Deluxe/Lite
  4133. >InTouch 3.0
  4134. >Cirrus 2.0
  4135. >InfoDepot 2.0
  4136. >JPEG View 3.0 (freeware!)
  4137. >Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
  4138. >JMP 3.0
  4139. >PowerAgent
  4140. >Userland Frontier 2.1 (or later)
  4141. >WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
  4142. >
  4143. >With the AppleScript Scripters kit they provided a guide to Scriptable
  4144. >Applications (most of these are in there).
  4145. >
  4146.  
  4147. Actually, they got the bit about Frontier wrong: Frontier can _record_
  4148. recordable applications. It's not recordable itself.
  4149.  
  4150. Also, PixelPaint Pro 3.0 is recordable, I believe.
  4151.  
  4152. Doug
  4153. =========================================================================
  4154. Date:         Fri, 4 Nov 1994 17:24:48 -0500
  4155. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4156. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4157. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  4158. Subject:      read/write commands
  4159.  
  4160. I'm sitting here looking at dictionaries for a variety of additions for
  4161. working with text files, and wondering if anybody has any experiences that
  4162. would lead them to prefer one over another.
  4163.  
  4164. Specifically, I'm wondering if I should replace the commands from Apple's
  4165. read/write addition with the simpler ones from Peter Lewis' Text Files
  4166. Suite if I don't need the complexity of the read/write commands. It would
  4167. save a lot of code involved in opening and closing the files and error
  4168. checking to make sure they get closed if something goes wrong along the
  4169. way etc. But, is it safer to take care of all that stuff myself? Will it
  4170. really speed things up to use the simpler commands, or are they taking
  4171. more time to open and close each file each time they're called? Any other
  4172. thoughts on the matter?
  4173.  
  4174. I appreciate cc's of brilliant perceptions, since I get the digest and
  4175. therefore there's some delay involved.
  4176.  
  4177. thanks,
  4178. Barry
  4179. =========================================================================
  4180. Date:         Fri, 4 Nov 1994 16:36:05 -0600
  4181. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4182. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4183. From:         "Dennis J. Hagner" <HAGNEDJ@LUB002.LAMAR.EDU>
  4184. Subject:      Re: AEResolve
  4185.  
  4186. To Dana Cartwright,
  4187.   You spoke of trying to find out how to use AEResolve.
  4188. Aren't we all.  I found that when I have problems
  4189. figuring out how to use something, I look at the code
  4190. from the Think Class Library (I'm using Symantec C++
  4191. 7.0) and see how they did it.  Once I see it in action,
  4192. it makes it alot easier to write it myself!
  4193.  
  4194. Dennis J. Hagner
  4195. Programmer/Operator
  4196. Lamar University
  4197. Beaumont, Texas
  4198. e-mail: HAGNEDJ@LUB002.LAMAR.EDU
  4199. =========================================================================
  4200. Date:         Fri, 4 Nov 1994 15:43:33 -0700
  4201. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4202. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4203. From:         Matthew Frederick <mfred@AMUG.ORG>
  4204. Subject:      Re: Finding every occurence of a delimiter
  4205.  
  4206. >   A portion of a script I am writing contains a nested repeat loop which I
  4207. >would like to get ride to enhance speed performance.  The loop contains a
  4208. >check for every occurence of a tab to see if the file contains data or not.
  4209.  
  4210. You might try using Wayne Walrath's excellent "Tokenize" and "Join List"
  4211. OSAXen (available on gaea as "ACME Script Widgets") -- first, tokenize the
  4212. string with {tab} as the delimiter, and then Join List on the result with
  4213. {} as the delimiter list. If the resultant string is empty (or equal to the
  4214. special word that begins each of your original strings), you know it's
  4215. empty.
  4216.  
  4217. If your original has returns because it has multiple lines, you can
  4218. tokenize with tab and return as your delmiters.
  4219.  
  4220. Matthew
  4221.  
  4222. ----------------------------------------------------------
  4223. "Believe nothing, no matter where you read it, or who said
  4224. it -- even if I have said it -- unless it agrees with your
  4225. own reason and your common sense."            --The Buddha
  4226. ----------------------------------------------------------
  4227. Matthew Frederick, Phoenix, Arizona, USA  (mfred@amug.org)
  4228. =========================================================================
  4229. Date:         Thu, 3 Nov 1994 15:19:17 -0700
  4230. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4231. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4232. From:         "Travel, Mike" <Travel#m#_Mike@MSGATE.APPLE.COM>
  4233. Subject:      Accessing scripting additions on remote machines
  4234.  
  4235. Does anyone know why this isn't possible or if it is, how to do it.
  4236.  
  4237. this doesn't work --
  4238. tell app "Finder" of machine "myMac" of zone "myZone"
  4239.      display dialog "testing"
  4240. end tell
  4241.  
  4242. I get the message "Finder got an error.  No user interaction allowed."
  4243.  
  4244. Linking and sharing are both on.
  4245.  
  4246. Whats strange is that you can use the OSAX 'beep' and it works just fine.
  4247.  
  4248. Thanks for any advice
  4249. Peace,
  4250. Mike
  4251. =========================================================================
  4252. Date:         Fri, 4 Nov 1994 21:26:42 +0000
  4253. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4254. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4255. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  4256. Subject:      Re: List of Lists
  4257.  
  4258. >set totalList to {totalList} & {newListElement}
  4259.  
  4260. For appending a list to a list, I use the following:
  4261.  
  4262. Set List1 to (1,2,3}
  4263.  
  4264. Set List2 to {4,5,6}
  4265.  
  4266. Set Combinelist to List1 & every item of List2
  4267.  
  4268. => (1,2,3,{4,5,6}}
  4269.  
  4270. Dennis L. Whiteman
  4271. THE ULTIMATE FREELANCER
  4272.  
  4273. ultimate@mail.icon.net
  4274. =========================================================================
  4275. Date:         Fri, 4 Nov 1994 23:36:00 -0800
  4276. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4277. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4278. From:         Jon Pugh <jonpugh@NETCOM.COM>
  4279. Subject:      Re: Accessing scripting additions on remote machines
  4280.  
  4281. Travel, Mike <Travel#m#_Mike@MSGATE.APPLE.COM> wrote:
  4282. >
  4283. >Does anyone know why this isn't possible or if it is, how to do it.
  4284. >
  4285. >this doesn't work --
  4286. >tell app "Finder" of machine "myMac" of zone "myZone"
  4287. >     display dialog "testing"
  4288. >end tell
  4289. >
  4290. >I get the message "Finder got an error.  No user interaction allowed."
  4291. >
  4292. >Linking and sharing are both on.
  4293. >
  4294. >Whats strange is that you can use the OSAX 'beep' and it works just fine.
  4295.  
  4296. The default user action level is "interact with local".  This means that
  4297. interaction is allowed if the event is sent from the same machine, but not
  4298. if sent from another machine.  This means that it doesn't allow you to put
  4299. up dialogs on other people's machines.
  4300.  
  4301. The application receiving the event can change its own interaction level,
  4302. ideally to "interact with remote".  PhotoFlash allows you to change an
  4303. interaction level property, although we normally turn it down so that we
  4304. don't get dialogs which stop the script.  You could also turn it up so that
  4305. remote scripts can put up dialogs.  Quark has this property this too.
  4306.  
  4307. The way around this is to do this:
  4308.  
  4309. tell app "Finder" of machine "myMac" of zone "myZone"
  4310.      run script "display dialog \"testing\""
  4311. end tell
  4312.  
  4313. This way the event is sent from the local machine and it works.
  4314.  
  4315. This "user interaction level" property is a must have for all scriptable
  4316. applications.  Hmm, it could be an osax.  Another one for the queue.  ;)
  4317.  
  4318. Jon
  4319. =========================================================================
  4320. Date:         Sat, 5 Nov 1994 00:20:05 -0800
  4321. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4322. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4323. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  4324. Subject:      Re: Accessing scripting additions on remote machines
  4325.  
  4326. >Does anyone know why this isn't possible or if it is, how to do it.
  4327. >
  4328. >this doesn't work --
  4329. >tell app "Finder" of machine "myMac" of zone "myZone"
  4330. >     display dialog "testing"
  4331. >end tell
  4332. >
  4333. >I get the message "Finder got an error.  No user interaction allowed."
  4334. >
  4335. >Linking and sharing are both on.
  4336. >
  4337. >Whats strange is that you can use the OSAX 'beep' and it works just fine.
  4338.  
  4339. I believe AppleScript sends events to remote machines with the user
  4340. interaction flag in the event set to kAENeverInteract (events to the local
  4341. machine are sent with the flag set to kAECanInteract).  Makes sense in the
  4342. general case, where the machine being sent to may have a poor unsuspecting
  4343. user sitting there working.
  4344.  
  4345. I also believe it is not possible to control this flag in AppleScript
  4346. [Frontier allows setting either kAEAlwaysInteract or kAENeverInteract in
  4347. outgoing messages].
  4348.  
  4349. Whether an incoming event causes user interaction is controlled both by the
  4350. sender and the receiving application...the sender sets up one of three
  4351. values
  4352.    kAENeverInteract
  4353.    kAECanInteract
  4354.    kAEAlwaysInteract
  4355.  
  4356. [The difference between "Can" and "Always" is pretty "soft"...Can might
  4357. cause interaction for alerts and dialogs which the server needs to pose to
  4358. get information, whereas Always would do that plus interacting to put up
  4359. progress displays and such.  Never implies either return an error (as you
  4360. saw, there's a special error code) or using default values.  Different apps
  4361. do things differently.]
  4362.  
  4363.  
  4364. A receiving app which wishes to interact may make a call to
  4365. AESetInteractionAllowed, to set up one of three states:
  4366.  
  4367.    kAEInteractWithSelf
  4368.    kAEInteractWithLocal  (the default, in effect before AESetInteractionAllowed)
  4369.    kAEInteractWithAll
  4370.  
  4371. Before doing any user interaction, the server app makes yet another call:
  4372. AEInteractWithUser ().
  4373.  
  4374.    The AE Manager now looks at the flag in the event, and the application's
  4375. state, and where the event came from (a send-to-self, a local app, a remote
  4376. app), and decides whether interaction is valid.  If not, an error is
  4377. returned.  If interaction is valid, the AE Manager may bring the server to
  4378. the front directly (there's another flag in the event which influences
  4379. this) if it is not, or it may use the Notificaton Manager to do so.  Either
  4380. way, once the server app is in front, the AEInteractWithUser call returns
  4381. with a no error status, at which point the app is free to interact (and
  4382. knows it is in front).
  4383.  
  4384.    I'm glad this wasn't made complex.  --John
  4385.  
  4386. --
  4387. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  4388. =========================================================================
  4389. Date:         Sat, 5 Nov 1994 20:56:38 +1100
  4390. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4391. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4392. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  4393. Subject:      Re: Recordable Applications
  4394. In-Reply-To:  <199411040928.UAA15055@ariel.ucs.unimelb.EDU.AU> from "John W.
  4395.               Baxter" at Nov 3, 94 11:46:08 pm
  4396.  
  4397. >
  4398. > >Can anyone tell me how to find out what apps are recordable, not merely
  4399. > >scriptable? The only recordable apps I know of now are:
  4400. > > System 7.5 Finder
  4401. > > Scriptable Text Editor
  4402. > > PhotoFlash
  4403. > >
  4404. > >As a beginner, I find it much easier to work with recordable apps -- I can
  4405. > >basically make my own example scripts.
  4406. > >
  4407. > >Has anyone been working with other recordable applications? Which ones? TIA!
  4408. >
  4409. > StuffIt Deluxe and SITcomm from Aladdin (StuffIt Deluxe 3.5 is a
  4410. > worth-while upgrade, BTW).
  4411. >
  4412. > InfoDepot.
  4413. > [...]
  4414. What's InfoDepot? I understand it's attachable--in what way? What's the
  4415. pricing/availability?
  4416.  
  4417. Thanks for any info,
  4418.  
  4419.  
  4420. /==============================\
  4421. | Jeremy P. Howard              |       "Logic must take care of itself."
  4422. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  4423. \==============================/         Tractatus Logico-Philisophicus
  4424. =========================================================================
  4425. Date:         Sat, 5 Nov 1994 05:19:46 +0000
  4426. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4427. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4428. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  4429. Subject:      Another "wait" question
  4430.  
  4431. After following the previous posts about using idle handlers and such, I
  4432. decided to automate the reboot of my MUD server when the rest of my server
  4433. reboots. Here's the script:
  4434.  
  4435.         global whatsNext
  4436.         on run
  4437.                  launch application "MacMud 3.2()"
  4438.                  set whatsNext to "setup"
  4439.         end run
  4440.  
  4441.         on idle
  4442.                  if whatsNext is "setup" then
  4443.                         set whatsNext to "Done"
  4444.                         return (60 / 6)
  4445.                 else
  4446.                          tell application "MacMud 3.2()"
  4447.                                  "Startup MacMud"
  4448.                          end tell
  4449.                 end if
  4450.         end idle
  4451.  
  4452. The problem here is that the result is always "setup", and so thus, the
  4453. script quits then, not continuing through to do the tell. Any help would be
  4454. *greatly* appreciated!
  4455.  
  4456. TIA,
  4457.  
  4458. ==============================================================
  4459. Jaeson M. Engle                                              (aka: Colaks
  4460. Kyraden    GodKing)
  4461. xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
  4462. xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
  4463. jme@josaiah.sewanee.edu                Elomense(MUD): josaiah.sewanee.edu 1999
  4464. ==============================================================
  4465. =========================================================================
  4466. Date:         Fri, 4 Nov 1994 12:09:33 -0600
  4467. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4468. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4469. From:         "Thomas G. Ostertag" <tostertag@TCM.MN.ORG>
  4470. Subject:      Re(2): MACSCRPT Digest - 22 Oct 1994 to 23 Oct 1994
  4471.  
  4472. Why did I get this?
  4473. _________________________________________________________________
  4474. At 24/10/94, Automatic digest processor wrote:
  4475. >
  4476. >At 07:23 10/23/94, Jeremy Quinn wrote:
  4477. >>I want to write a script that will "get" the selected URL in a Eudora
  4478. >>window via a Web clients "Open URL" event.
  4479. >
  4480. >--------------------
  4481. >Regarding Frontier [...]
  4482. >
  4483. >    Eudora.eventInfo.selectedText = 'eStx'
  4484. >
  4485. >Then, this statement will obtain the current selected text from Eudora:
  4486. >    core.get (Eudora.id, Eudora.eventInfo.selectedText)
  4487. >
  4488. >You could add a "plain" get event to your Eudora glue table if you want to
  4489. >(assuming Frontier 3.0.x):
  4490. >
  4491. >on get (obj, as = nil)
  4492. >    core.get (Eudora.id, obj, as)
  4493. >
  4494. >Then you could just write
  4495. >with Eudora
  4496. >    get (selectedText)
  4497. >
  4498. >I hope this helps.  [To discover the value 'eStx', I had the Commercial
  4499. >Developer's Suite which ships with Frontier build a new glue table
  4500. >(different name), and looked up the value of selectedText.]
  4501.  
  4502.  
  4503. Thank you for an exellent reply! Yes it works!
  4504. I learnt so many new things about Frontier from this one message!
  4505.  
  4506. I would like to make this script available on gaea. Another thing I never
  4507. worked out with Frontier is how to make an installer, that includes scripts
  4508. from different locations in my DB. There are components of this script
  4509. scattered around my Frontier/Runtime root in:-
  4510.  
  4511. system.verbs.apps.Eudora                (2 additions to glue table)
  4512. system.verbs.apps.Eudora.eventinfo      (1 addition)
  4513. system.verbs.apps.Mozilla               (NetScape's glue table)
  4514. system.menubars.CSOm                    (1 menu)
  4515.  
  4516. Thanks again for your help
  4517.  
  4518. Jeremy
  4519.  
  4520. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  4521. =========================================================================
  4522. Date:         Sat, 5 Nov 1994 13:14:12 -0500
  4523. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4524. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4525. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  4526. Subject:      HTTP scripts URL
  4527.  
  4528. Just poking around the Web, I ran across this page of AppleScript/MacHTTP
  4529. script information, for those of you who might be wondering what use AS is
  4530. for MacHTTP.
  4531.  
  4532. URL: http://edb518ea.edb.utexas.edu/scripts/cgix/cgix.html
  4533.  
  4534. spud.
  4535.  
  4536.  
  4537. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4538. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  4539. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  4540. spud@access.digex.net ----------- Web:    http://access.digex.net/~spud
  4541.  
  4542.  
  4543. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  4544. =========================================================================
  4545. Date:         Sat, 5 Nov 1994 12:23:30 +0000
  4546. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4547. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4548. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  4549. Subject:      Re: HTTP scripts URL
  4550.  
  4551. >Just poking around the Web, I ran across this page of AppleScript/MacHTTP
  4552. >script information, for those of you who might be wondering what use AS is
  4553. >for MacHTTP.
  4554. >
  4555. >URL: http://edb518ea.edb.utexas.edu/scripts/cgix/cgix.html
  4556. >
  4557. >spud.
  4558. >
  4559. >
  4560. >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4561. >a.h.s. boy ---------------------- manifesto overlord, dada typographics
  4562. >--------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  4563. >spud@access.digex.net ----------- Web:    http://access.digex.net/~spud
  4564. >
  4565. >
  4566. >mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  4567.  
  4568. I tried to check this out just now, but at first couldn't access the URL,
  4569. thengot unknown errors, after truncating the url a bit, to a higher
  4570. directory. Anyone else have trouble with this one?
  4571.  
  4572. ==============================================================
  4573. Jaeson M. Engle                                              (aka: Colaks
  4574. Kyraden    GodKing)
  4575. xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
  4576. xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
  4577. jme@josaiah.sewanee.edu                Elomense(MUD): josaiah.sewanee.edu 1999
  4578. ==============================================================
  4579. =========================================================================
  4580. Date:         Sat, 5 Nov 1994 14:59:32 -0500
  4581. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4582. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4583. From:         Brian Collard <BWCOLLARD@AOL.COM>
  4584. Subject:      Scriptable FTP with Firewall
  4585.  
  4586. Does anyone have any suggestions for a scriptable ftp client through
  4587. firewall.  Currently we are using Anarchie internally by it cannot go through
  4588. the Firewall even though VersaTerm FTP Client can ftp through Firewall.
  4589.  Unfortunately VersaTerm FTP Client or VersaTerm Link does not support
  4590. scripting for FTP sessions, and their people have indicated that this will
  4591. never be supported since they implemented via comm toolbox.  Also I have
  4592. tried the Mango software but have been unable to get it to work throught
  4593. Firewall.  Also Software Ventures is soon to release new product Snatcher
  4594. that should address this but they have not even started beta.  Currently here
  4595. are the possible solutions I have found.
  4596. 1.)  Snatcher, but not tested and not released.
  4597. 2.)  VersaTerm FTP Client with Quickeys but this gets interupted by user
  4598. mouse clicks.
  4599. 3.)  Anarchie, Peter Lewis has indicated he will be releasing a new version
  4600. shortly although I am not sure if this will deal with Firewall problem.
  4601. 4.)  Mango, ?.
  4602. 5.)  Eudora ?? no experience.
  4603. 6.)  Apple's Developer kit for MacTCP, sounds like a lot of work.
  4604. 7.)  VersaTerm FTP Client driven by MPW.
  4605.  
  4606. If anyone has comments or suggestions it would be appreciated.  The Firewall
  4607. is a Sparc1 supporting standard UNIX commands such as ls, get, put.
  4608.  
  4609. Thanks
  4610. Brian Collard
  4611. =========================================================================
  4612. Date:         Sat, 5 Nov 1994 12:27:40 -0800
  4613. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4614. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4615. From:         Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
  4616. Subject:      Re: Scriptable FTP with Firewall
  4617.  
  4618. >Does anyone have any suggestions for a scriptable ftp client through
  4619. >firewall.  Currently we are using Anarchie internally by it cannot go through
  4620.  
  4621. ....snip
  4622.  
  4623. >If anyone has comments or suggestions it would be appreciated.  The Firewall
  4624. >is a Sparc1 supporting standard UNIX commands such as ls, get, put.
  4625.  
  4626. One way to handle firewalls for Macintosh users is to provide access
  4627. through the firewall via an IP Gateway. Apple has a product called the
  4628. Apple IP Gateway that can be used to safely span a firewall.
  4629.  
  4630. You install the Apple IP Gateway on a Mac with an ethernet card. Configure
  4631. it for dynamic address assignments only. Have the IP Gateway AppleTalk port
  4632. and IP port be on the same ethernet card. Configure the firewall to allow
  4633. IP packets to and from the physical address of the ethernet card in the IP
  4634. Gateway (not it's many IP addresses).
  4635.  
  4636. Users configure MacTCP to use the IP gateway. When they launch an IP
  4637. process, MacTCP makes a connection to the gateway, assigns an available IP
  4638. address and the user communicates to the outside world.
  4639.  
  4640. >From the outside, the firewall only allows access to the IP Gateway and the
  4641. IP gateway prevents access to the internal network. The IP gateway does not
  4642. prevent external access to Macs connected to the gateway who have also
  4643. installed IP server software but the number of folks who would setup a
  4644. server on a machine that gets randomly assigned addresses is very slim.
  4645. Even if users install server software, since their address changes each
  4646. time they restart their mac, they can be difficult to locate from the
  4647. outside. It's pretty secure.
  4648.  
  4649. Because the IP Gateway is inside the firewall, it allows users to connect
  4650. to both internal and external IP services without making any special
  4651. arrangements. One advantage of the Apple IP Gateway is that you can use
  4652. multiple macs as IP Gateways on the same AppleTalk zone if the 253 users
  4653. per gateway isn't enough OR if you need a lower number of users per IP
  4654. Gateway for performance reasons.
  4655.  
  4656. I appologize that this is not a scripting question and answer but since the
  4657. question was asked in this mailing list, and there are probably folks in a
  4658. similar situation, I figured I should reply to the list.
  4659.  
  4660. Kee Nethery
  4661. =========================================================================
  4662. Date:         Sat, 5 Nov 1994 18:32:23 PST
  4663. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4664. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4665. From:         Eric Bowman <Eric.Bowman@DIRECTORY.REED.EDU>
  4666. Subject:      Best way to script "Shared" finder info flag?
  4667.  
  4668. Howdy,
  4669.  
  4670. Could anyone tell me the best way to set a file's "Shared" finder flag (like
  4671. in a "Get File/Folder Info..." ResEdit window) via AppleScript?  Does an OSAX
  4672. exist for this?
  4673.  
  4674. Many thanks,
  4675. bobo
  4676. --
  4677. Eric Bowman
  4678. bobo@reed.edu
  4679. Biology Department
  4680. Reed College
  4681. =========================================================================
  4682. Date:         Sat, 5 Nov 1994 20:12:46 -0800
  4683. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4684. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4685. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  4686. Subject:      Re: Scriptable FTP with Firewall
  4687.  
  4688. At 7:59 PM 11/5/94, Brian Collard wrote:
  4689. >Does anyone have any suggestions for a scriptable ftp client through
  4690. >firewall.  Currently here are the possible solutions I have found.
  4691. >1.)  Snatcher, but not tested and not released.
  4692. >
  4693.         Can't comment other than to say that it is VERY scriptable - assume
  4694. that it ships ;).
  4695.  
  4696.  
  4697. >2.)  VersaTerm FTP Client with Quickeys but this gets interupted by user
  4698. >mouse clicks.
  4699. >
  4700.         You actually CAN script this using a scriptable comm program (like
  4701. SITcomm) as there are "CTB commands" supported by the tool to allow you to
  4702. do most things.  There is also a direct programmer's API to the tool...
  4703.  
  4704.  
  4705. >3.)  Anarchie, Peter Lewis has indicated he will be releasing a new version
  4706. >shortly although I am not sure if this will deal with Firewall problem.
  4707. >
  4708.         The current version (1.4.x) of Anarchie supports most firewalls.
  4709. Have you tried that version?
  4710.  
  4711.  
  4712. Leonard
  4713.  
  4714. -----------------------------------------------------------------------------
  4715. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  4716. Director of Advanced Technology         AppleLink:      MACgician
  4717. Aladdin Systems, Inc.                   GEnie:          MACgician
  4718. =========================================================================
  4719. Date:         Sun, 6 Nov 1994 10:30:24 -0500
  4720. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4721. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4722. From:         Brian Harrison <harrison@APPLE.COM>
  4723. Subject:      Re: Scripting MacHTTP
  4724.  
  4725. >Fellow scripters:
  4726. >
  4727. >I am trying to write a script to, when requested, activate TR-WWW (a searching
  4728. >application), bring it to the foreground (speed improvement), set the MacHTTP
  4729. >Pig_Delay to a low value and then perform a search using TR-WWW.  After TR-WWW
  4730. >finishes, the results should be sent back to my script for forwarding to
  4731. >MacHTTP and then to the client.
  4732.  
  4733. >When submitting a form to the above script, TR-WWW activates, loads the set of
  4734. >files requested, searches them, and then my script returns the following error
  4735. >message back to the client:
  4736. >
  4737. >ERROR: 1 tr-www.cgi got an error: An error of type 1 has occurred.
  4738. >
  4739.  
  4740. Dave,  sounds like memory....  try allocating more memory to the TR-WWW app
  4741. ("get info" on the app, increasing the preferred memory size to as large a
  4742. number as you can stand given your memory configuration and the other apps
  4743. running, etc.)
  4744. =========================================================================
  4745. Date:         Sun, 6 Nov 1994 17:30:47 GMT
  4746. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4747. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4748. From:         Dan Hinckley <dbh@GN.APC.ORG>
  4749. Subject:      Eudora auto-reply
  4750.  
  4751. Working on an auto-reply from Eudora & it has one bug: after completing the
  4752. "connect with checking" and the filtering into mailbox "test" Eudora throws
  4753. up an Alert: Sorry, couldn't start that application!" -192 {16.3373}. I hit
  4754. OK and the script completes its drill. Tried turning off the Mail Arrived
  4755. alerts in Eudora but no joy. Anyone tell me what's up?
  4756.  
  4757. (PS: I scounged most of this code from all the helpful folks on the list
  4758. and it has saved wads of time. Thanks!)
  4759. ----------begin script--------
  4760. if not (PPPopened) then
  4761.         openPPP
  4762. end if
  4763. with timeout of 9999 seconds
  4764.      tell application "Eudora 2.1"
  4765.            connect with checking      <---- problem after this action +
  4766. filtering
  4767.             set ct to count of message in mailbox "test"
  4768.             if ct > 0 then
  4769.                repeat with n from 1 to ct
  4770.                      if subject of message n in mailbox "test" contains
  4771. "test" then
  4772.                            set theReply to reply message n of mailbox
  4773. "test" with quoting and self
  4774.                            set signature of message 0 to alternate
  4775.                            set field "subject" of message 0 to "In response
  4776. to your request.."
  4777.                            set theBod to body of theReply
  4778.                            set body of theReply to "(Automatic response
  4779. text goes here)
  4780. Here's what you wrote:" & return & return & theBod
  4781.                              queue message 0
  4782.                          end if
  4783.                     end repeat
  4784.          end if
  4785.          set q_stat to status of last message of mailbox "out"
  4786.          if q_stat is queued then
  4787.             connect with sending
  4788.          end if
  4789.     end tell
  4790. end timeout
  4791. activate
  4792. activate
  4793. activate
  4794. closePPP
  4795. ----------end script---------
  4796. =========================================================================
  4797. Date:         Mon, 7 Nov 1994 10:07:00 +1300
  4798. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4799. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4800. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  4801.               NZ" <LDO@WAIKATO.AC.NZ>
  4802. Subject:      Re: Launching an app in the background
  4803.  
  4804. Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
  4805.  
  4806. >I am running a script that launches StuffIt Expander. It has the potential of
  4807. >doing the launching while AfterDark is active. The problem I'm having is that
  4808. >launching an application while AfterDark is active is causing the application
  4809. >to not fully launch until AfterDark goes away (I move the mouse or press a
  4810. >key).
  4811.  
  4812. When using After Dark, remember the Golden Rule: if it causes you trouble,
  4813. get rid of it.
  4814.  
  4815. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  4816. Computer Services Dept                     fax: +64-7-838-4066
  4817. University of Waikato            electric mail: ldo@waikato.ac.nz
  4818. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  4819. =========================================================================
  4820. Date:         Mon, 7 Nov 1994 11:25:00 +1300
  4821. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4822. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4823. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  4824.               NZ" <LDO@WAIKATO.AC.NZ>
  4825. Subject:      Re: Question: Applets and Multi-Threading
  4826.  
  4827. [Sorry this message is 12 days late, on account of the screwup with the list
  4828. address. I figure the information is still relevant, so I'm reposting it.]
  4829.  
  4830. David Lewis <lewis@NETCOM.COM> points out:
  4831.  
  4832. >>use a semaphor lock:
  4833. >>
  4834. >>on doWork()
  4835. >>        if not busy then
  4836. >        ***Danger, Will Robinson, Danger***
  4837. >>                set busy to true
  4838. >>                -- do the work
  4839. >>                set busy to false
  4840. >>        end if
  4841. >
  4842. >There is a subtle but important bug here. In a re-entrant environment,
  4843. >another process could come in at the indicated point and you'd be in
  4844. >trouble in a way that would hit rarely enough to truly drive you crazy.
  4845. >What you need is a test-and-set operation which is guaranteed atomic.
  4846.  
  4847. This might not be necessary. As I understand it, AppleScript's "multithreading"
  4848. works like this: the script is always in a position to respond to new messages,
  4849. even while it's handling an existing one. When the new message comes in, the
  4850. currently-executing handler is suspended, and only resumed after the new
  4851. message has been completely handled.
  4852.  
  4853. Thus, there is no round-robin scheduling among currently-executing threads:
  4854. they just go on a stack, and the topmost one is allowed to run to completion
  4855. before resuming the previous one.
  4856.  
  4857. If my understanding is correct, the above check should work just fine.
  4858.  
  4859. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  4860. Computer Services Dept                     fax: +64-7-838-4066
  4861. University of Waikato            electric mail: ldo@waikato.ac.nz
  4862. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  4863. =========================================================================
  4864. Date:         Mon, 7 Nov 1994 11:54:00 +1300
  4865. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4866. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4867. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  4868.               NZ" <LDO@WAIKATO.AC.NZ>
  4869. Subject:      Re: Copyright (was Re: Graphic Scripting & aete library
  4870.  
  4871. Leonard Rosenthol <leonardr@NETCOM.COM> writes:
  4872.  
  4873. >>You would need Copyright clearance for each and every 'aete' resource in
  4874. >>the collection, from the copyright owner.
  4875. >
  4876. >        Yeah, the legalities are kinda interesting on this one.  The format
  4877. >of an 'aete', since it is public isn't copyrightable.  The standard suite
  4878. >names, etc. can't be since they are "standard", but one could argue that
  4879. >the "private" stuff and the combination could be.
  4880.  
  4881. However, bear in mind what happens when you open a dictionary in the
  4882. Script Editor, or send a "get terminology" event to an application--you get
  4883. back a copy of the aete. Is this a violation of copyright? AppleScript
  4884. caches the aete's, so it doesn't have to keep retrieving them every time
  4885. you recompile a script--is this a violation of copyright?
  4886.  
  4887. Say you print the contents of a dictionary window in the Script Editor,
  4888. and distribute copies (either on paper, or electronically as a QuickDraw GX
  4889. Portable Digital Document) to people. Is that a violation of copyright?
  4890.  
  4891. As I understood it, copyright applies to the expression of information, not
  4892. to the information itself. Given a certain set of terminology information,
  4893. the aete syntax doesn't give you many choices in how you express that
  4894. information.
  4895.  
  4896. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  4897. Computer Services Dept                     fax: +64-7-838-4066
  4898. University of Waikato            electric mail: ldo@waikato.ac.nz
  4899. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  4900. =========================================================================
  4901. Date:         Mon, 7 Nov 1994 12:24:00 +1300
  4902. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4903. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4904. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  4905.               NZ" <LDO@WAIKATO.AC.NZ>
  4906. Subject:      Re: AEResolve
  4907.  
  4908. "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU> writes:
  4909.  
  4910. >I'm attempting to take a non-scriptable app I sell, which runs about
  4911. >100K lines of C code, and make it scriptable.  I'm struggling
  4912. >to understand AEResolve and how it works.
  4913.  
  4914. Other people have mentioned the article in "develop" issue 10. That's a good
  4915. introduction to the basic capabilities provided by the AppleEvent Manager
  4916. and the Object Support Library. But in my view, if you're going to write
  4917. a fully scriptable and recordable application that supports the AppleEvent
  4918. Object Model, these capabilities are nowhere near enough: you will need to
  4919. build a framework on top of them.
  4920.  
  4921. I've been refining such a framework, using a couple of projects-in-progress
  4922. as testbeds. The key was use of the "token", which the OSL allows to be
  4923. anything you like. I define it as an AERecord, with a number of standard
  4924. field types, not all of which have to be present in all tokens.
  4925.  
  4926. A lot of these fields contain action routines, which are invoked via standard
  4927. dispatchers. For example, my generic "get data" AppleEvent handler looks in
  4928. the token for field containing a get-data action routine; if it doesn't find
  4929. one, it next looks for a field containing the address to copy the data from;
  4930. and finally it looks for another field containing the literal data itself.
  4931. This gives you maximum flexibility in how you deal with different types of data.
  4932.  
  4933. My tokens also contain object accessor routines for the different element and
  4934. property types that the objects can contain. These are invoked via a single
  4935. generic object accessor that is installed globally with typeWildCard for both
  4936. its desiredClass and containerType. I find this gives me more flexibility than
  4937. having to install all my actual object accessors directly at the global level,
  4938. as the OSL normally requires.
  4939.  
  4940. This all sounds very object-oriented, but it isn't, really: it's a lot more
  4941. dynamic, and there's no implicit inheritance chain. Also, it allows me to
  4942. deal with the problem Jon Pugh and I argued over some weeks back, where if you
  4943. perform a lengthy operation on a bunch of objects, some programs give you a
  4944. quick succession of progress dialogs, instead of a single one for the whole
  4945. operation. By the way, this is all written in Modula-2.
  4946.  
  4947. So far it's been working quite well. Adding new properties, new elements
  4948. and new event types to my application has been a relatively painless process.
  4949. I'm currently trying to think of a good, general way of dealing with comparison
  4950. routines, which are needed for "where" and "whose" clauses. No doubt this will
  4951. mean adding a new class of action routines to my token AERecords...
  4952.  
  4953. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  4954. Computer Services Dept                     fax: +64-7-838-4066
  4955. University of Waikato            electric mail: ldo@waikato.ac.nz
  4956. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  4957. =========================================================================
  4958. Date:         Mon, 7 Nov 1994 14:14:00 +1300
  4959. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4960. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  4961. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  4962.               NZ" <LDO@WAIKATO.AC.NZ>
  4963. Subject:      Re: Graphic Scripting
  4964.  
  4965. Mike Shaff <shaff@QUILTY.STANFORD.EDU> asks:
  4966.  
  4967. >        [HyperTalk]  you can even type individual system calls into the message
  4968. >        box, and see the results at once.
  4969. >
  4970. >Wow!  Really, I think you have an awesome potential there.  I love the speed of
  4971. >compiled code, but I sure miss an interpreter for working out things.  I must
  4972. >admit, I miss Lisp.
  4973.  
  4974. LISP probably has much more innate power for interfacing to system things in
  4975. this way, but it also carries more overhead. Also it isn't as widespread,
  4976. which limits the opportunities for other people to take things that I create
  4977. and modify them.
  4978.  
  4979. >Can you tell more about what is/isn't supported in your implementation?
  4980.  
  4981. Let's see, QuickDraw functions: about 195 of these. They correspond pretty
  4982. much to direct QuickDraw calls: thus, I have ones for doing PaintRect,
  4983. FillCRect, EraseRgn etc. I also add some extra utility functions, like
  4984. DrawPictureFromFile, which takes the name of a PICT file, and draws it
  4985. directly into the specified port and destination rectangle. One neat feature
  4986. of HyperCard 2.1/2.2 is that a window ID is actually the decimal integer
  4987. address of the WindowRecord/GrafPort structure. Thus, my QuickDraw externals
  4988. can draw into any of HyperCard's windows.
  4989.  
  4990. I also have a couple of other sets for doing calls to the QuickTime Movie
  4991. Toolbox and Image Compression Manager. You can create movies, do low-level
  4992. editing, extract data from movies, fiddle playback rates etc.
  4993.  
  4994. QuickDraw GX functions: I think I've done about 140 of these so far. You
  4995. can create path shapes, polygon shapes and basic text shapes. You can do all
  4996. the matrix manipulations (I even have a utility routine to create perspective
  4997. mappings). There's full support of on-screen and offscreen viewports.
  4998.    QuickDraw GX is a much bigger API than old QuickDraw. Also, I'm a little
  4999. more RSI-conscious (and rather less compulsive) than I was last year...
  5000.  
  5001. Of course, it's all very well drawing into HyperCard's windows, but what you
  5002. draw is liable to disappear when HyperCard next does an update. To fix this,
  5003. I put together a simple hack I call Update Monitor. Basically this patches
  5004. a couple of traps, and sends "Update" messages to your HyperTalk scripts,
  5005. telling you that a card window needs updating. It's sort of a poor person's
  5006. ColorizeHC/Color Tools, without the RAM overhead of large preallocated
  5007. offscreen buffers, and hopefully with a bit more flexibility. On the down
  5008. side, it doesn't look as slick--I can't update while the user is holding the
  5009. command and option keys down, for example, though I do update as soon as they
  5010. let go.
  5011.  
  5012. That should be enough self-advertising :-). As you can see, there's quite a
  5013. lot of work gone into these externals, and I'm looking for ways to get some
  5014. money back for them, which is why I haven't just published them on the net.
  5015. If you have a use for them, or a suggestion for distribution, talk to me.
  5016.  
  5017. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  5018. Computer Services Dept                     fax: +64-7-838-4066
  5019. University of Waikato            electric mail: ldo@waikato.ac.nz
  5020. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  5021. =========================================================================
  5022. Date:         Sun, 6 Nov 1994 21:34:03 -0500
  5023. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5024. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5025. From:         John Dunning <jdunning@PHOENIX.PRINCETON.EDU>
  5026. Subject:      Scriptable Finder questions
  5027.  
  5028. I believe Finder 7.1.3 is "the Scriptable Finder."  However, when I was
  5029. using it with AppleScript 1.1, it wasn't recordable and wouldn't accept a
  5030. script that used the "delete selection" command.  Also, if I open Finder
  5031. 7.1.3's dictionary, it lists the Finder 7.0 dictionary.  The same thing
  5032. happens with Finder 7.1.4, from System 7.5.  If I install the Scriptable
  5033. Finder Extension (which appears to contain the Scriptable Finder
  5034. dictionary), recording and the delete selection scripts work fine.
  5035.  
  5036. I was under the impression that "the Scriptable Finder" was scriptable all
  5037. by itself, without any other extensions.  Is that not the case?
  5038.  
  5039. On a different note, I've got the Scripting Menu v. 1.0B1.  It seems like a
  5040. very useful extension.  Is there a newer, "official" release available
  5041. anywhere?
  5042.  
  5043.  
  5044. John
  5045.  
  5046. ______________________________________________________________________________
  5047. John Dunning                                    jdunning@phoenix.princeton.edu
  5048. =========================================================================
  5049. Date:         Mon, 7 Nov 1994 11:53:01 +0100
  5050. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5051. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5052. From:         WalrathW <walrathw@RFERL.ORG>
  5053. Subject:      Re: Best way to script "Shared" finder info flag?
  5054.  
  5055. > Could anyone tell me the best way to set a file's "Shared" finder flag
  5056. (like
  5057. > in a "Get File/Folder Info..." ResEdit window) via AppleScript?  Does an
  5058. OSAX
  5059. > exist for this?
  5060.  
  5061. This isn't always a good idea to do. If an application modifies resources in
  5062. its resource fork, then it's not a good candidate for being a shareable app.
  5063. You'll be taking chances if you change this.
  5064.  
  5065. I'm not sure if an OSAX exists for setting finder flags or not.
  5066.  
  5067. -wayne
  5068. =========================================================================
  5069. Date:         Mon, 7 Nov 1994 08:56:56 -0700
  5070. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5071. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5072. From:         "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
  5073. Subject:      Script Help
  5074.  
  5075. I want to be able to read in records from a text file and write them
  5076. out again...The first character of each line is often a LineFeed
  5077. (from a DOS text file) i want to test it (this works) and delete it
  5078. if it is a linefeed...but when i put "characters 2 through (length of
  5079. namefield) of namefield" into a variable it ends up with spaces
  5080. between each of the characters...
  5081.  
  5082. I tried to delete character 1 of the variable but apparently it
  5083. doesn't know how to do that...
  5084.  
  5085. Also is there a tighter way to do the loop of running through each
  5086. record than what i've done with counting characters (pointer)?
  5087.  
  5088. Thanks much, Andy
  5089. -----------------------------------------------
  5090. to ProcessFile(anObj)
  5091. #copy (open for access anObj without write permission) to fid
  5092. #copy (open for access (a reference to file (anObj & ".IC")) with
  5093. write permission) to newfid
  5094. #copy (get eof fid) to filelen
  5095. #copy 0 to pointer
  5096. #set savedtextitemdelimiters to AppleScript's text item delimiters
  5097. #set AppleScript's text item delimiters to tab
  5098. #repeat while pointer < filelen
  5099. ##copy (read fid until return) to temp
  5100. ##copy (length of temp) + pointer to pointer
  5101. ##copy text item 1 of temp to namefield
  5102. ##if (character 1 of namefield is "#") then
  5103. ###copy (characters 2 through (length of namefield) of namefield) to
  5104. namefield
  5105. ##end if
  5106. ##copy (text item 3 of temp & tab & namefield & tab & text item 8 of
  5107. temp & "#" & text item 9 of temp & "#" & text item 11 of temp &
  5108. "#" & text item 12 of temp & tab & text item 4 of temp & "#" &
  5109. text item 5 of temp & ", " & text item 6 of temp & "  " & text item 7
  5110. of temp & "#" & text item 10 of temp & tab & tab & tab & tab & text
  5111. item 2 of temp & tab & tab & tab & tab & tab & text item 13 of temp &
  5112. return) to writestuff
  5113. ##write writestuff to newfid
  5114. #end repeat
  5115. #close access fid
  5116. #close access newfid
  5117. #set AppleScript's text item delimiters to savedtextitemdelimiters
  5118. end ProcessFile
  5119. =========================================================================
  5120. Date:         Mon, 7 Nov 1994 08:56:48 -0600
  5121. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5122. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5123. From:         "Fred.Terry." <pfterry@LKS.CSI.COM>
  5124. Subject:      Jon's Commands 1.2
  5125. In-Reply-To:  Your message of "Sat, 05 Nov 94 01:34:04 PST"
  5126.  
  5127. Hi Everyone,
  5128.  
  5129. Jon Pugh has released version 1.2 of his handy osaxen. He says....
  5130.  
  5131. Jon's Commands is a collection of useful AppleScript Scripting Additions.
  5132. This release adds 2 new commands, "set cursor to" and "AE user interaction
  5133. level".  Now you can set the cursor to indicate busy scripts, including
  5134. animated cursors, and you can enable or disable user interaction in
  5135. programs you are scripting.
  5136.  
  5137.  
  5138. You'll find them in
  5139.  
  5140. ftp://gaea.kgs.ukans.edu/applescript/osaxen/JonsCommands1.2.sit.hqx
  5141.  
  5142.  
  5143. Enjoy.
  5144.  
  5145. pf
  5146. =========================================================================
  5147. Date:         Mon, 7 Nov 1994 10:27:06 -0500
  5148. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5149. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5150. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  5151. Subject:      Best Place to get info on FaceSpan
  5152.  
  5153. Where is the best place to get FaceSpan questions answered?  Are there a
  5154. lot of FaceSpan users in this e-mail list?
  5155.  
  5156. Mark Hadfield
  5157. hadfield@sickkids.on.ca
  5158. The Hospital For Sick Children
  5159. =========================================================================
  5160. Date:         Mon, 7 Nov 1994 08:31:43 -0800
  5161. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5162. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5163. From:         Kevin Purcell <kevinpu@ATM.COM>
  5164. Subject:      Re: Best Place to get info on FaceSpan
  5165.  
  5166. >Where is the best place to get FaceSpan questions answered?  Are there a
  5167. >lot of FaceSpan users in this e-mail list?
  5168. >
  5169. >Mark Hadfield
  5170. >hadfield@sickkids.on.ca
  5171. >The Hospital For Sick Children
  5172.  
  5173. Apple Devloper Tech support?
  5174.  
  5175. Here is a good a place as any.
  5176.  
  5177. Kevin "beta testing FaceSpan 1.0 every day" Purcell
  5178.  
  5179. Kevin Purcell      Attachmate Corp        (206) 649-6489
  5180. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  5181. =========================================================================
  5182. Date:         Mon, 7 Nov 1994 08:55:19 -0800
  5183. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5184. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5185. From:         Mark Stuller <mstuller@ODA.STATE.OR.US>
  5186. Subject:      Waiting....
  5187.  
  5188. I have a script that executes a FileMaker script.  Then another FM script
  5189. and then another.  I needs however to _wait_ till the first one is done
  5190. before trying to do the second, and third.
  5191.  
  5192. Is there a wait command in AS?
  5193.  
  5194. Thanks
  5195.  
  5196. ___________________________________________________________
  5197. Mark Stuller,Systems Analyst     Oregon Dept of Agriculture
  5198. mstuller@oda.state.or.us                Voice: 503.986.4609
  5199. http://www.oda.state.or.us                FAX: 503.986.4746
  5200. ___________________________________________________________
  5201. =========================================================================
  5202. Date:         Mon, 7 Nov 1994 00:53:35 -0700
  5203. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5204. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5205. From:         "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
  5206. Subject:      Script Help
  5207.  
  5208. I want to be able to read in records from a text file and write them
  5209. out again...The first character of each line is often a LineFeed
  5210. (from a DOS text file) i want to test it (this works) and delete it
  5211. if it is a linefeed...but when i put "characters 2 through (length of
  5212. namefield) of namefield" into a variable it ends up with spaces
  5213. between each of the characters...
  5214.  
  5215. Also is there a tighter way to do the loop than what i've done with
  5216. counting characters?
  5217.  
  5218. Thanks much, Andy
  5219. -----------------------------------------------
  5220. to ProcessFile(anObj)
  5221. #copy (open for access anObj without write permission) to fid
  5222. #copy (open for access (a reference to file (anObj & ".IC")) with
  5223. write permission) to newfid
  5224. #copy (get eof fid) to filelen
  5225. #copy 0 to pointer
  5226. #set savedtextitemdelimiters to AppleScript's text item delimiters
  5227. #set AppleScript's text item delimiters to tab
  5228. #repeat while pointer < filelen
  5229. ##copy (read fid until return) to temp
  5230. ##copy (length of temp) + pointer to pointer
  5231. ##copy text item 1 of temp to namefield
  5232. ##if (character 1 of namefield is "#") then
  5233. ###copy (characters 2 through (length of namefield) of namefield) to
  5234. namefield
  5235. ##end if
  5236. ##copy (text item 3 of temp & tab & namefield & tab & text item 8 of
  5237. temp & "#" & text item 9 of temp & "#" & text item 11
  5238. of temp & "#" & text item 12 of temp & tab & text item 4 of temp & "#"
  5239. & text item 5 of temp & ", " & text item 6 of temp & "  " & text item
  5240. 7 of temp & "#" & text item 10 of temp & tab & tab & tab & tab &
  5241. text item 2 of temp & tab & tab & tab & tab & tab & text
  5242. item 13 of temp & return) to writestuff
  5243. ##write writestuff to newfid
  5244. #end repeat
  5245. #close access fid
  5246. #close access newfid
  5247. #set AppleScript's text item delimiters to savedtextitemdelimiters
  5248. end ProcessFile
  5249. =========================================================================
  5250. Date:         Mon, 7 Nov 1994 14:35:16 -0600
  5251. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5252. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5253. From:         sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
  5254. Subject:      Hypercard Scripting Question
  5255.  
  5256.  Hi everyone--
  5257.  
  5258.  I'm attempting to script HyperCard 2.2, and I keep getting this minor, but
  5259.  debilitating problem.  Here is the code I use to access the HyperCard
  5260.  appplication i'm using:
  5261.  
  5262.         activate application "HyperCard"
  5263.         tell application "HyperCard"
  5264.                 set folderScript to "CreateFolder " & (myGroup as string)
  5265.                 do script folderScript
  5266.         end tell
  5267.  
  5268.  What is supposed to happen here is that HyperCard will open, will access
  5269.  a stack called "X-Archive" with a function "CreateFolder" in it, and
  5270.  Create a folder whose name is stored in myGroup.  The problem i'm having
  5271.  is that the script runs fine, and HyperCard is opened, but it is hidden,
  5272.  and does nothing.  When I activate HyperCard manually, using the icon
  5273.  on the far right of the Finder's menubar, HyperCard asks me "Where is
  5274.  Home?", to which i answer "X-Archive", and _then_ the folder is created.
  5275.  My question, then, is, what commands do i need to use to ensure that
  5276.  the folder is created without the user _explicitly_ making Hypercard the
  5277.  active application, and designating Home.  Also, this is not AppleScript
  5278.  related, but i am not all that familiar with the ins and outs of HyperCard,
  5279.  and so i was wondering, what is "Home", in the HyperCard context?
  5280.  Thanks in advance for all your help.
  5281.  
  5282.  eric brunick
  5283.  
  5284.  
  5285. + "you're the prettiest of them all, but tell me something....what's wrong  +
  5286. +  with you, what's wrong with everybody in this crazy place?!?!"--SP       +
  5287. + "even the most primative societies have an innate respect for the insane" +
  5288. +  sexonwheelz--ecb41215@uxa.cso.uiuc.edu  ||   --RUMBLE FISH               +
  5289. =========================================================================
  5290. Date:         Mon, 7 Nov 1994 14:36:56 -0600
  5291. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5292. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5293. From:         "Karl F. Bridges" <cfkfb@EIU.EDU>
  5294. Subject:      Scripting print ps in Quark
  5295. In-Reply-To:  <9411060238.AA02260@ux1.eiu.edu> from "Eric Bowman" at Nov 5,
  5296.               94 06:32:23 pm
  5297.  
  5298.         Anyone know the correct syntax for applescripting a print to
  5299. postscript function in quark.  I know how to open the doc, do the repeat
  5300. loop, ect.  I'm just unclear on the syntax of the print command itself
  5301. and whatver parameters if any need to be included. --
  5302.  
  5303.  
  5304. *****************************************************************************
  5305. Karl Bridges
  5306. cfkfb@eiu.edu
  5307. *****************************************************************************
  5308. =========================================================================
  5309. Date:         Mon, 7 Nov 1994 14:39:10 -0600
  5310. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5311. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5312. From:         sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
  5313. Subject:      Re: Writing to a text file
  5314.  
  5315. >
  5316. > >Is there an osax which will allow me to read from and write to a text file?
  5317. > >I know I can do this with the Scriptable Text Editor, but it seems a bit
  5318. > >clunky.
  5319. >
  5320. > The read/write commands that are part of AppleScript 1.1 allow you to read
  5321. > from and write to standard text files. In fact, I'm using one now to log my
  5322. > PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
  5323. > ships as part of System 7.5.
  5324. >
  5325. OK--what are these specific commands?  I have AppleScript 1.1, but I can't
  5326. find the right commands--I _think_ its "copy", from looking at "Language
  5327. at a Glance" but i'm not sure.  Thanks.
  5328.  
  5329. eric
  5330.  
  5331. + "you're the prettiest of them all, but tell me something....what's wrong  +
  5332. +  with you, what's wrong with everybody in this crazy place?!?!"--SP       +
  5333. + "even the most primative societies have an innate respect for the insane" +
  5334. +  sexonwheelz--ecb41215@uxa.cso.uiuc.edu  ||   --RUMBLE FISH               +
  5335. =========================================================================
  5336. Date:         Mon, 7 Nov 1994 22:32:41 +0100
  5337. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5338. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5339. From:         Rolf Kocherhans <rolfk@VETVIR.UNIZH.CH>
  5340. Subject:      Write to a File
  5341.  
  5342. Hello
  5343.  
  5344. I try to write to a file which works with the following script:
  5345.  
  5346. set myString to current date
  5347. set myFile to new file with prompt "Save the Server Log..." default name
  5348. "Server Log"
  5349. open for access myFile with write permission
  5350. write myString of me to myFile
  5351. close access myFile
  5352.  
  5353.  
  5354. But something goes wrong the result of it in the file is:
  5355.  
  5356.  
  5357. November 1994 22:27:47
  5358.  
  5359. Why do I get so many funny caracters before the date ?????
  5360.  
  5361. And how do I write to a second line in the same file, and after another
  5362. start into the third line .....
  5363. What I actually want is,to write to the end of the file but only the date
  5364. and time not funny caracters.
  5365.  
  5366. Can anybody help ?!?
  5367.  
  5368. Rolf
  5369.  
  5370.                                      \|/
  5371.                                     (o o)
  5372. ________________________________oOo__(_)__oOo_________________________________
  5373.     ___/\_    | Rolf Kocherhans               Internet : rolfk@vetvir.unizh.ch
  5374.    /    o \/| | University Inst.for Virology  Telephone: (+41) 1 3651538
  5375.   /        _| | Winterthurerstr. 266a         Faximile : (+41) 1 3630140
  5376.  /_/\__/-\/   | 8057 Zurich SWITZERLAND
  5377. ______________________________________________________________________________
  5378.    If it wasn't for Windows, we wouldn't have anything to compare Mac's to
  5379. ______________________________________________________________________________
  5380. =========================================================================
  5381. Date:         Mon, 7 Nov 1994 13:44:55 -0800
  5382. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5383. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5384. From:         Doug Baron <userland@NETCOM.COM>
  5385. Subject:      Re: Re(2): MACSCRPT Digest - 22 Oct 1994 to 23 Oct 1994
  5386.  
  5387. >
  5388. >I would like to make this script available on gaea. Another thing I never
  5389. >worked out with Frontier is how to make an installer, that includes scripts
  5390. >from different locations in my DB. There are components of this script
  5391. >scattered around my Frontier/Runtime root in:-
  5392. >
  5393. >system.verbs.apps.Eudora                (2 additions to glue table)
  5394. >system.verbs.apps.Eudora.eventinfo      (1 addition)
  5395. >system.verbs.apps.Mozilla               (NetScape's glue table)
  5396. >system.menubars.CSOm                    (1 menu)
  5397. >
  5398. >Thanks again for your help
  5399. >
  5400. >Jeremy
  5401. >
  5402.  
  5403. Jeremy,
  5404.  
  5405. Here's a basic installer script. Just put all of the individually-exported
  5406. items into an "Install Files" subfolder, and this script will suck them all
  5407. in sequentially:
  5408.  
  5409. on Installer (path)
  5410.    local (sourcefolder = file.folderFromPath (path) + "Install Files:")
  5411.  
  5412.    local (f)
  5413.    fileloop (f in sourcefolder, infinity) <<install all the items in the folder
  5414.       case file.creator (f)
  5415.          'LAND'
  5416.             if memAvail () < 80000
  5417.                fileMenu.save ()
  5418.             if file.type (f) == '2CLK'
  5419.                Frontier.finder2click (f)
  5420.          'DOCS'
  5421.             if defined (DocServer)
  5422.                try
  5423.                   app.startWithDocument ("DocServer", f)
  5424.                else
  5425.                   dialog.alert (tryError)
  5426.  
  5427.    fileMenu.save ()
  5428.    dialog.notify ("Installation complete.")
  5429.    return (true)
  5430.  
  5431. Actually, this one isn't completely basic; it will handle DocServer files
  5432. that are in the folder as well as exported object database items.
  5433.  
  5434. If you don't want a separate confirmation/prompt for each imported item,
  5435. you can replace the Frontier.finder2click call with a call to a local
  5436. routine that looks like this:
  5437.  
  5438. on loadScriptFile (f)
  5439.    local (resdata, cellname, s)
  5440.    try
  5441.       if not rez.getNthResource (f, 'data', 1, @cellname, @resdata)
  5442.          scriptError ("Error reading \"" + file.fileFromPath (f) + "\".")
  5443.  
  5444.       table.surePath (cellname) <<make sure the table exists
  5445.       local (adr = address (cellname))
  5446.       bundle <<double-unpack the data
  5447.          unpack (@resdata, @resdata)
  5448.          unpack (@resdata, @resdata)
  5449.          table.moveAndRename (@resdata, adr)
  5450.    else
  5451.       dialog.notify ("Didn't install " + file.fileFromPath (f) + " [" +
  5452. tryError + ']')
  5453.  
  5454. Hope that helps!
  5455.  
  5456. Doug
  5457. =========================================================================
  5458. Date:         Mon, 7 Nov 1994 13:56:15 -0800
  5459. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5460. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5461. From:         Steve Michel <michel@NETCOM.COM>
  5462. Subject:      Re: Write to a File
  5463.  
  5464. >Hello
  5465. >
  5466. >I try to write to a file which works with the following script:
  5467. >
  5468. >set myString to current date
  5469. >set myFile to new file with prompt "Save the Server Log..." default name
  5470. >"Server Log"
  5471. >open for access myFile with write permission
  5472. >write myString of me to myFile
  5473. >close access myFile
  5474. >
  5475. >
  5476. >But something goes wrong the result of it in the file is:
  5477. >
  5478. >
  5479. >November 1994 22:27:47
  5480. >
  5481. >Why do I get so many funny caracters before the date ?????
  5482.  
  5483.  
  5484.  
  5485. Write the time as a string, as in:
  5486.  
  5487. write (myString of me) as string to myFile
  5488.  
  5489. >
  5490. >And how do I write to a second line in the same file, and after another
  5491. >start into the third line .....
  5492.  
  5493. Here's a bit of code that writes to the end of a file:
  5494.  
  5495. copy (get eof myFile) + 1 to whereToWrite
  5496. -- write the current date & time
  5497. write tab & ((current date) as string) starting at whereToWrite to myFile
  5498.  
  5499. (assuming of course, that the file is already open)
  5500.  
  5501. >What I actually want is,to write to the end of the file but only the date
  5502. >and time not funny caracters.
  5503. >
  5504. >Can anybody help ?!?
  5505. >
  5506. >Rolf
  5507. >
  5508. >                                     \|/
  5509. >                                    (o o)
  5510. >________________________________oOo__(_)__oOo_________________________________
  5511. >    ___/\_    | Rolf Kocherhans               Internet : rolfk@vetvir.unizh.ch
  5512. >   /    o \/| | University Inst.for Virology  Telephone: (+41) 1 3651538
  5513. >  /        _| | Winterthurerstr. 266a         Faximile : (+41) 1 3630140
  5514. > /_/\__/-\/   | 8057 Zurich SWITZERLAND
  5515. >______________________________________________________________________________
  5516. >   If it wasn't for Windows, we wouldn't have anything to compare Mac's to
  5517. >______________________________________________________________________________
  5518. =========================================================================
  5519. Date:         Mon, 7 Nov 1994 16:34:29 +0000
  5520. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5521. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5522. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  5523. Subject:      Re: help
  5524.  
  5525. Sorry bout that 'help' thing guys and gals, my nicknames file was skewed :=
  5526. =AC(
  5527.  
  5528. Anyway, while I have your attention:
  5529. This is a script I am working on to launch my MUD software that doesn't
  5530. auto start once opened. I have seen that it will accept the AE and startup,
  5531. but the problem is, it waits then quits, ignoring the rest of the code. Any
  5532. help would be greatly appreciated!
  5533. Here's the code,      I hope it come through ok:
  5534.  
  5535.         global whatsNext
  5536.         on run
  5537.                 launch application "MacMud 3.2"
  5538.                  set whatsNext to "setup"
  5539.                 end run
  5540.  
  5541.         on idle
  5542.                  if whatsNext is "setup" then
  5543.                  set whatsNext to "Done"
  5544.                         return (60 / 6)
  5545.                  else
  5546.                         tell application "MacMud 3.2"
  5547.                                 "Startup MacMud"
  5548.                         end tell
  5549.                 end if
  5550.         end idle
  5551.  
  5552. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  5553. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  5554. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  5555. Jaeson M. Engle                                              (aka: Colaks
  5556. Kyraden    GodKing)
  5557. xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
  5558. xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
  5559. jme@josaiah.sewanee.edu                Elomense(MUD): josaiah.sewanee.edu 19=
  5560. 99
  5561. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  5562. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  5563. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  5564. =========================================================================
  5565. Date:         Mon, 7 Nov 1994 19:00:50 -0500
  5566. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5567. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5568. From:         Joe Campbell <jpcampb@AFTERLIFE.NCSC.MIL>
  5569. Subject:      Re: Launching an app in the background
  5570.  
  5571. > From <@uga.cc.uga.edu:owner-macscrpt@DARTCMS1.DARTMOUTH.EDU> Mon Nov  7
  5572.  18:37:17 1994
  5573. >
  5574. > Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
  5575. >
  5576. > >I am running a script that launches StuffIt Expander. It has the potential of
  5577. > >doing the launching while AfterDark is active. The problem I'm having is that
  5578. > >launching an application while AfterDark is active is causing the application
  5579. > >to not fully launch until AfterDark goes away (I move the mouse or press a
  5580. > >key).
  5581. >
  5582. > When using After Dark, remember the Golden Rule: if it causes you trouble,
  5583. > get rid of it.
  5584.  
  5585. At the risk of getting too far off the track, I'll second that and add
  5586. a vote for DarkSide 4.2.  IMHO, once you try it, you'll never go back
  5587. to After Dark.  Will DarkSide solve your problem?
  5588.  
  5589. ftp://mac.archive.umich.edu/util/screensaver/darkside/darkside4.2.sit.hqx
  5590.  
  5591. Regards,
  5592. Joe
  5593. _____________________________________________________________________________
  5594. | Dr. Campbell  N3JBC  jpcampb@alpha.ncsc.mil   jpcampb@afterlife.ncsc.mil  |
  5595. | Speaking for myself     Happiness = Reality - Expectations, Click & Clack |
  5596. |___________________ Sun Mail Tool attachments welcomed ____________________|
  5597. =========================================================================
  5598. Date:         Mon, 7 Nov 1994 18:33:14 -0600
  5599. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5600. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5601. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  5602. Subject:      Re: Script Help
  5603.  
  5604. I highly recommend Wayne Walrath's Acme Scripting Widgets package which
  5605. includes several osax that would make you're job easier. The first is the
  5606. Tokenize osax, which returns a list based on user-specified delimiters. Thus,
  5607. you could specify the ascii character representing line feeds and tokenize
  5608. would return a list of everything else. Then, using the Join List osax, you
  5609. could convert the list into a long string with anything between the list
  5610. items, i.e., returns, spaces, etc.
  5611.  
  5612. Dennis L. Whiteman
  5613. THE ULTIMATE FREELANCER
  5614.  
  5615.  ------ From: Macintosh Scripting Systems, 11/7/94 6:09 PM ------
  5616. I want to be able to read in records from a text file and write them
  5617. out again...The first character of each line is often a LineFeed
  5618. (from a DOS text file) i want to test it (this works) and delete it
  5619. if it is a linefeed...but when i put "characters 2 through (length of
  5620. namefield) of namefield" into a variable it ends up with spaces
  5621. between each of the characters...
  5622.  
  5623. I tried to delete character 1 of the variable but apparently it
  5624. doesn't know how to do that...
  5625.  
  5626. Also is there a tighter way to do the loop of running through each
  5627. record than what i've done with counting characters (pointer)?
  5628.  
  5629. Thanks much, Andy
  5630. -----------------------------------------------
  5631.  
  5632. Dennis Whiteman
  5633. THE ULTIMATE FREELANCER
  5634. ultimate@mail.icon.net
  5635. =========================================================================
  5636. Date:         Mon, 7 Nov 1994 18:41:23 -0600
  5637. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5638. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5639. From:         sexonwheelz <ecb41215@UXA.CSO.UIUC.EDU>
  5640. Subject:      Re: Writing to a text file
  5641.  
  5642. > >> The read/write commands that are part of AppleScript 1.1 allow you to read
  5643. > >> from and write to standard text files. In fact, I'm using one now to log my
  5644. > >> PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
  5645. > >> ships as part of System 7.5.
  5646. > >>
  5647. > >OK--what are these specific commands?  I have AppleScript 1.1, but I can't
  5648. > >find the right commands--I _think_ its "copy", from looking at "Language
  5649. > >at a Glance" but i'm not sure.  Thanks.
  5650. > >
  5651. >
  5652. > There scripting additions.
  5653. >
  5654. I assumed that.  Which ones are they?  The dictionary is not intuitive.
  5655.  
  5656. > Perhaps you should invest in a manual!
  5657. >
  5658. I have a manual for 1.0, thank you.  It seems silly to buy another one,
  5659. when (theoretically) I could get a simple answer on this mailing list.
  5660.  
  5661. eric brunick
  5662.  
  5663. + "you're the prettiest of them all, but tell me something....what's wrong  +
  5664. +  with you, what's wrong with everybody in this crazy place?!?!"--SP       +
  5665. + "even the most primitive societies have an innate respect for the insane" +
  5666. +  sexonwheelz--ecb41215@uxa.cso.uiuc.edu  ||   --RUMBLE FISH               +
  5667. =========================================================================
  5668. Date:         Tue, 8 Nov 1994 15:14:00 +1300
  5669. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5670. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5671. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  5672.               NZ" <LDO@WAIKATO.AC.NZ>
  5673. Subject:      Re: Hypercard Scripting Question
  5674.  
  5675. >The problem i'm having
  5676. > is that the script runs fine, and HyperCard is opened, but it is hidden,
  5677. > and does nothing.  When I activate HyperCard manually, using the icon
  5678. > on the far right of the Finder's menubar, HyperCard asks me "Where is
  5679. > Home?", to which i answer "X-Archive", and _then_ the folder is created.
  5680.  
  5681. Your copy of HyperCard is missing its "Home" stack.
  5682.  
  5683. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  5684. Computer Services Dept                     fax: +64-7-838-4066
  5685. University of Waikato            electric mail: ldo@waikato.ac.nz
  5686. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  5687. =========================================================================
  5688. Date:         Tue, 8 Nov 1994 04:10:15 +0200
  5689. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5690. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5691. From:         nj@SUNSTATION.FUSL.AC.BE
  5692. Subject:      Re: Launching an app in the background
  5693.  
  5694. >Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
  5695. >
  5696. >>I am running a script that launches StuffIt Expander. It has the potential of
  5697. >>doing the launching while AfterDark is active. The problem I'm having is that
  5698. >>launching an application while AfterDark is active is causing the application
  5699. >>to not fully launch until AfterDark goes away (I move the mouse or press a
  5700. >>key).
  5701. >
  5702. >When using After Dark, remember the Golden Rule: if it causes you trouble,
  5703. >get rid of it.
  5704.  
  5705.  
  5706. Try Basic Black, free and use 2k of ram.
  5707.  
  5708. ------------------------------------------------
  5709. | Nicolas Jungers --> nj@sunstation.fusl.ac.be |
  5710. ------------------------------------------------
  5711. =========================================================================
  5712. Date:         Mon, 7 Nov 1994 22:35:37 +0000
  5713. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5714. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5715. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  5716. Subject:      Re: Launching an app in the background
  5717.  
  5718. >> When using After Dark, remember the Golden Rule: if it causes you trouble,
  5719. >> get rid of it.
  5720. >
  5721. >At the risk of getting too far off the track, I'll second that and add
  5722. >a vote for DarkSide 4.2.  IMHO, once you try it, you'll never go back
  5723. >to After Dark.  Will DarkSide solve your problem?
  5724. >
  5725. >ftp://mac.archive.umich.edu/util/screensaver/darkside/darkside4.2.sit.hqx
  5726. >
  5727. >Regards,
  5728. >Joe
  5729. I had similar problems (crashes actually) involving AfterDark, and decided
  5730. I would try DarkSide. I installed and rebooted (after one of my famous
  5731. crashes) and *wham* straight into the dbugger. This happend 3 times before
  5732. I restarted with extensions and startup items off, pulled the DarkSide
  5733. alias out of my startup items folder and restarted, this time fine. So for
  5734. now, I just turn my monitor off when I'm away.
  5735.  
  5736. ==============================================================
  5737. Jaeson M. Engle              (aka: Colaks    Kyraden    GodKing)
  5738. xxx "ASpectreSoViolentInItsViewsLiesImperviousAltitudeHasATendancy xxx
  5739. xxxxxxxxxxxxxxxxxx UnderPressureToRevealItsIdentity" xxxxxxxxxxxxxxxxxxxx
  5740. jme@josaiah.sewanee.edu                Elomense(MUD): josaiah.sewanee.edu 1999
  5741. ==============================================================
  5742. =========================================================================
  5743. Date:         Mon, 7 Nov 1994 20:41:33 PST
  5744. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5745. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5746. From:         Eric Bowman <Eric.Bowman@DIRECTORY.REED.EDU>
  5747. Subject:      Re: Best way to script "Shared" finder info flag?
  5748.  
  5749. I wrote:
  5750. >> Could anyone tell me the best way to set a file's "Shared"
  5751. >> finder flag (like in a "Get File/Folder Info..." ResEdit
  5752. >> window) via AppleScript?  Does an OSAX exist for this?
  5753.  
  5754. walrathw@RFERL.ORG responded:
  5755. > This isn't always a good idea to do. If an application
  5756. > modifies resources in its resource fork, then it's not
  5757. > a good candidate for being a shareable app. You'll be
  5758. > taking chances if you change this.
  5759.  
  5760. True.  I forgot to mention that this is software I've written,
  5761. which is to run off a server, which means the flag *has* to
  5762. be set if more than one user is to run the program at a time.
  5763. I'm attempting to automate the build process using AppleScript,
  5764. since I've recently switched from MPW to CodeWarrior.
  5765.  
  5766. Most applications don't modify themselves, or if they do, only
  5767. trivially.  That's what preference files are for.
  5768.  
  5769. Which returns me to my earlier question:  does such a beast
  5770. exist?  I don't mind writing one if it doesn't.
  5771.  
  5772. Thanks,
  5773. bobo
  5774. --
  5775. Eric Bowman
  5776. bobo@reed.edu
  5777. Biology Department
  5778. Reed College
  5779. =========================================================================
  5780. Date:         Mon, 7 Nov 1994 20:56:53 -0800
  5781. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5782. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5783. From:         Kevin Purcell <kevinpu@ATM.COM>
  5784. Subject:      Re: Writing to a text file
  5785.  
  5786. >> >> The read/write commands that are part of AppleScript 1.1 allow you to read
  5787. >> >> from and write to standard text files. In fact, I'm using one now to
  5788. >>log my
  5789. >> >> PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but
  5790. >>1.1.1
  5791. >> >> ships as part of System 7.5.
  5792. >> >>
  5793. >> >OK--what are these specific commands?  I have AppleScript 1.1, but I can't
  5794. >> >find the right commands--I _think_ its "copy", from looking at "Language
  5795. >> >at a Glance" but i'm not sure.  Thanks.
  5796. >> >
  5797. >>
  5798. >> There scripting additions.
  5799. >>
  5800. >I assumed that.  Which ones are they?  The dictionary is not intuitive.
  5801.  
  5802. Read/Write Commands scripting addition.
  5803.  
  5804. Drag the osax to script editor to inspect the aete.
  5805.  
  5806. They read/write arbitrary bytes to the data fork of a file
  5807.  
  5808. >
  5809. >> Perhaps you should invest in a manual!
  5810. >>
  5811. >I have a manual for 1.0, thank you.  It seems silly to buy another one,
  5812. >when (theoretically) I could get a simple answer on this mailing list.
  5813.  
  5814. But that ain't what the list is for ... if you can find the answer
  5815. elsewhere first then do that. Its called netiquette. I have noticed an
  5816. alarming drop in the signal to noice ratio recently (to the point where
  5817. people ask the same question that was asked on a few posts before).
  5818.  
  5819. That said I think you will learn a lot more if you invest in a few (10s :-)
  5820. of bucks in the AppleScript Language Guide. It really is THE reference!
  5821.  
  5822. And AS has changed )especially in osaxen from 1.0 to 1.1.
  5823.  
  5824. Kevin Purcell      Attachmate Corp        (206) 649-6489
  5825. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  5826. =========================================================================
  5827. Date:         Mon, 7 Nov 1994 22:05:19 -0600
  5828. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5829. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5830. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  5831. Subject:      Re: Script Help
  5832.  
  5833. ------ From: Macintosh Scripting Systems, 11/7/94 6:09 PM ------
  5834. I want to be able to read in records from a text file and write them
  5835. out again...The first character of each line is often a LineFeed
  5836. (from a DOS text file) i want to test it (this works) and delete it
  5837. if it is a linefeed...but when i put "characters 2 through (length of
  5838. namefield) of namefield" into a variable it ends up with spaces
  5839. between each of the characters...
  5840.  
  5841. I tried to delete character 1 of the variable but apparently it
  5842. doesn't know how to do that...
  5843.  
  5844. Also is there a tighter way to do the loop of running through each
  5845. record than what i've done with counting characters (pointer)?
  5846.  
  5847. Thanks much, Andy
  5848. -----------------------------------------------
  5849.  
  5850. I highly recommend Wayne Walrath's Acme Scripting Widgets package which
  5851. includes several osax that would make you're job easier. The first is the
  5852. Tokenize osax, which returns a list based on user-specified delimiters. Thus,
  5853. you could specify the ascii character representing line feeds and tokenize
  5854. would return a list of everything else. Then, using the Join List osax, you
  5855. could convert the list into a long string with anything between the list
  5856. items, i.e., returns, spaces, etc.
  5857.  
  5858. Dennis L. Whiteman
  5859. THE ULTIMATE FREELANCER
  5860.  
  5861. Dennis Whiteman
  5862. THE ULTIMATE FREELANCER
  5863. ultimate@mail.icon.net
  5864. =========================================================================
  5865. Date:         Mon, 7 Nov 1994 22:37:50 -0600
  5866. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5867. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5868. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  5869. Subject:      Re: Write to a File
  5870.  
  5871. On 11/7/94, Rolf Kocherhans wrote:
  5872.  
  5873. > Why do I get so many funny caracters before the
  5874. > date ?????
  5875. >
  5876. > And how do I write to a second line in the same
  5877. > file, and after another start into the third
  5878. > line ..... What I actually want is,to write to
  5879. > the end of the file but only the date and time
  5880. > not funny caracters.
  5881. >
  5882. > Can anybody help ?!?
  5883.  
  5884. Rolf,
  5885.  
  5886. I have a script that toggles my PPP connection open/close depending on its
  5887. current state. If it's closed, it sets a variable to the current date and
  5888. opens the connection. If it's open, it closes the connection, it sets another
  5889. variable to the current date, calculates the number of minutes on-line and
  5890. then writes a log entry to a tab-delimited text file. So long as you don't
  5891. move the file, it writes it to the file every time. When you do move the
  5892. file, it prompts you to find it or create a new one. This should give you
  5893. some hints about writing out to a text file:
  5894.  
  5895. ** Toggle PPP Script **
  5896.  
  5897. property IconLogFile : "" -- This is the pointer to the log file.
  5898. property MacPPPStatus : "" -- Status of MacPPP
  5899.  
  5900. --o Opens or closes PPP Connection, depending on its current state.
  5901. if not (PPPopened) then
  5902.   openPPP
  5903.   set StartString to current date
  5904. else
  5905.   closePPP
  5906.   set EndString to current date
  5907.   set StartTime to time string of StartString
  5908.   set StartDate to date string of StartString
  5909.   set EndTime to time string of EndString
  5910.   set TimeCalc to round ((EndString - StartString) / minutes) rounding up
  5911.   set WriteString to StartDate & tab & StartTime & tab & EndTime & tab &
  5912.     TimeCalc & return
  5913.   tell me
  5914.     WriteIconLog(WriteString)
  5915.   end tell
  5916. end if
  5917.  
  5918. --o Opens the log file for access or creates a new file
  5919. on WriteIconLog(WriteString)
  5920.   try
  5921.     set Iconreffile to (open for access IconLogFile with write permission)
  5922.   on error
  5923.     display dialog #194#
  5924.     "Couldn't find the Icon PPP Log file! Would you like to create one "#194#
  5925.       & return & "or find it?" buttons {"Create", "Find", "Cancel"} #194#
  5926.       default button "Create" with icon -16396
  5927.     if button returned of result is "Find" then
  5928.       set IconLogFile to (choose file with prompt #194#
  5929.         "Find the file Icon PPP Log:" of type "TEXT")
  5930.     else
  5931.       tell me
  5932.         set IconLogFile to CreateNewLog()
  5933.       end tell
  5934.     end if
  5935.     set Iconreffile to (open for access IconLogFile with write permission)
  5936.   end try
  5937.   write WriteString to Iconreffile starting at eof -- writes to end of file
  5938.   close access Iconreffile
  5939. end WriteIconLog
  5940.  
  5941. on CreateNewLog()
  5942.   set IconLogFile to (new file with prompt "Save Icon Log PPP file As:" #194#
  5943.    default name "Icon Log PPP")
  5944.   return IconLogFile
  5945. end CreateNewLog
  5946.  
  5947. ** End Of Script **
  5948.  
  5949. Hope this helps,
  5950.  
  5951. Dennis Whiteman
  5952. THE ULTIMATE FREELANCER
  5953. ultimate@mail.icon.net
  5954. =========================================================================
  5955. Date:         Mon, 7 Nov 1994 22:45:56 -0600
  5956. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5957. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5958. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  5959. Subject:      Re: Writing to a text file
  5960.  
  5961. eric,
  5962.  
  5963. > OK--what are these specific commands?  I have
  5964. > AppleScript 1.1, but I can't find the right
  5965. > commands--I _think_ its "copy", from looking at
  5966. > "Language at a Glance" but i'm not sure.
  5967. > Thanks.
  5968.  
  5969.  
  5970. eric,
  5971.  
  5972. The commands are contained in an Apple osax called Read/Write Commands
  5973. located in the Scripting Additions folder of your Extensions folder. Drag
  5974. that osax to the Script Editor and you'll get a list of the commands. These
  5975. are the basic commands:
  5976.  
  5977. -- This line opens the file for access with write permission
  5978.  
  5979.    set reffile to (open for access [filespec] with write permission)
  5980.  
  5981. -- This line writes a string to a file; eof is the end of the file otherwise
  5982. it replaces the whole file. There are also ways to specify beginning and
  5983. ending characters of the file being written to.
  5984.  
  5985.    write [string] to reffile starting at eof
  5986.  
  5987. -- After you've opened a file for access, you must close access
  5988.  
  5989.    close access reffile
  5990.  
  5991. Hope this helps,
  5992.  
  5993. Dennis Whiteman
  5994. THE ULTIMATE FREELANCER
  5995. ultimate@mail.icon.net
  5996. =========================================================================
  5997. Date:         Mon, 7 Nov 1994 22:15:29 -0800
  5998. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  5999. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6000. From:         Daniel Sears <sears@NETCOM.COM>
  6001. Subject:      how to make an app recordable
  6002.  
  6003. Here's a brief summary of how to make an applicaton recordable that my
  6004. brother Chris cooked up.  It is based on the AEGizmo package.
  6005.  
  6006. Fast Apple Event Factoring
  6007.  
  6008. When writing a factored application, that is an application that sends
  6009. Apple events to itself in response to user interface actions, writing the
  6010. send routines can be as difficult as the receivers.  This needn't be the
  6011. case if you use Jens Alfke's most excellent AEGizmo's package.  You write
  6012. a printf-like string and pass it with arguments to AEBuild.  This string
  6013. can be a little obscure, so here's the tip: put an AEPrint in the Apple
  6014. event handler, write an AppleScript equivalent and fire it from the
  6015. AppleScript editor.  AEPrint will print a descriptor that with a small
  6016. amount of editing can be pasted into the factor routine and passed to
  6017. AEBuild.  Making an application recordable takes about ten minutes.
  6018. Honest!
  6019. =========================================================================
  6020. Date:         Mon, 7 Nov 1994 23:57:51 -0800
  6021. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6022. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6023. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6024. Subject:      Re: Launching an app in the background
  6025.  
  6026. >Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
  6027. >
  6028. >>I am running a script that launches StuffIt Expander. It has the potential of
  6029. >>doing the launching while AfterDark is active. The problem I'm having is that
  6030. >>launching an application while AfterDark is active is causing the application
  6031. >>to not fully launch until AfterDark goes away (I move the mouse or press a
  6032. >>key).
  6033. >
  6034. >When using After Dark, remember the Golden Rule: if it causes you trouble,
  6035. >get rid of it.
  6036.  
  6037. I did.
  6038.  
  6039. However, After Dark does create a few Gestalt selectors.  One of those
  6040. returns a function address.  By calling that function, you [ie, an osax
  6041. acting for you] can learn things about the current status of After Dark
  6042. (including sleeping/not sleeping).  It's been a while, but I think you can
  6043. also "send a wake up call".
  6044.  
  6045. I don't have current information (what I have is a couple of years old,
  6046. supplied by Berkeley to the UserLand forum on CompuServe for use with
  6047. Frontier).  Berkeley will probably provide the current info on request.
  6048.  
  6049. This is not unique to After Dark...some of the Gestalt selectors are common
  6050. across several screen savers...one of those indicates which screen saver is
  6051. running.
  6052.  
  6053.    --John
  6054.  
  6055. --
  6056. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6057. =========================================================================
  6058. Date:         Mon, 7 Nov 1994 23:57:58 -0800
  6059. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6060. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6061. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6062. Subject:      Re: Eudora auto-reply
  6063.  
  6064. >Working on an auto-reply from Eudora & it has one bug: after completing the
  6065. >"connect with checking" and the filtering into mailbox "test" Eudora throws
  6066. >up an Alert: Sorry, couldn't start that application!" -192 {16.3373}. I hit
  6067. >OK and the script completes its drill. Tried turning off the Mail Arrived
  6068. >alerts in Eudora but no joy. Anyone tell me what's up?
  6069.  
  6070. That's the effect I would expect from trying to start of really Power Mac
  6071. only application on a 68K Mac.  [Well behaved Power Mac only apps have
  6072. enough 68K code in CODE resources to put up a "you can't do that on this
  6073. machine" sort of alert, and quit gracefully.]
  6074.  
  6075. However, I wouldn't expect that cause in your context.
  6076.  
  6077.    --John
  6078.  
  6079. --
  6080. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6081. =========================================================================
  6082. Date:         Mon, 7 Nov 1994 23:58:10 -0800
  6083. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6084. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6085. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6086. Subject:      Re: Copyright (was Re: Graphic Scripting & aete library
  6087.  
  6088. Lawrence D'Oliveiro writes:
  6089.  
  6090. >Leonard Rosenthol <leonardr@NETCOM.COM> writes:
  6091. >
  6092. >>>You would need Copyright clearance for each and every 'aete' resource in
  6093. >>>the collection, from the copyright owner.
  6094. >>
  6095. >>        Yeah, the legalities are kinda interesting on this one.  The format
  6096. >>of an 'aete', since it is public isn't copyrightable.  The standard suite
  6097. >>names, etc. can't be since they are "standard", but one could argue that
  6098. >>the "private" stuff and the combination could be.
  6099. >
  6100. >However, bear in mind what happens when you open a dictionary in the
  6101. >Script Editor, or send a "get terminology" event to an application--you get
  6102. >back a copy of the aete. Is this a violation of copyright? AppleScript
  6103. >caches the aete's, so it doesn't have to keep retrieving them every time
  6104. >you recompile a script--is this a violation of copyright?
  6105. >
  6106. >Say you print the contents of a dictionary window in the Script Editor,
  6107. >and distribute copies (either on paper, or electronically as a QuickDraw GX
  6108. >Portable Digital Document) to people. Is that a violation of copyright?
  6109. >
  6110. >As I understood it, copyright applies to the expression of information, not
  6111. >to the information itself. Given a certain set of terminology information,
  6112. >the aete syntax doesn't give you many choices in how you express that
  6113. >information.
  6114.  
  6115. Yes...and the 'aete' is an expression of information.  There's probably an
  6116. implied permission to use that information in the course of looking at
  6117. Dictionary windows.  [But juries do crazy things.]  But it's not at all
  6118. obvious that there is permission to take a resource out of a copyrighted
  6119. work and post it publicly.  Particularly when you have a license which the
  6120. courts may or may not uphold eventually which further restricts what you
  6121. can do.  Nor is it obvious that one could save a Dictionary window into a
  6122. file and post that.  Neither seems like it would be covered under "fair
  6123. use".
  6124.  
  6125. Then there's the fact that neither Fred nor Andy can (probably) afford to
  6126. defend the case should one be filed (and one might be, since failing to
  6127. defend a copyright seems to be a bad idea, although it seems less harmful
  6128. than failing to defend a trademark:  can I say "aspirin" here?  Yes...but
  6129. only because AG Bayer failed to defend it several years ago).
  6130.  
  6131.    --John
  6132.  
  6133. --
  6134. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6135. =========================================================================
  6136. Date:         Mon, 7 Nov 1994 23:58:24 -0800
  6137. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6138. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6139. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6140. Subject:      Re: Scriptable Finder questions
  6141.  
  6142. >I believe Finder 7.1.3 is "the Scriptable Finder."
  6143.  
  6144. The "Scriptable Finder" as I use the term refers to what you get with
  6145. Finder 7.1.3 or later PLUS the Finder Scripting Extension.  [Another way to
  6146. put it is that the "Scriptable Finder" is covered in the "Finder Scripting
  6147. Guide".]
  6148.  
  6149. The 7.0 Finder supported the old events, so it was "scriptable" (lower
  6150. case, not Apple's definition that "Scriptable" means having an 'aete'.  An
  6151. 'aete' for the old Finder showed up in System 7 Pro, so that one was
  6152. "Scriptable".
  6153.  
  6154. But the events were no more useful than they were in 7.0.  In Frontier, it
  6155. takes some rather clever glue scripts to do the job of sending the events
  6156. (in place in Jan 1992).  Until the "Scriptable Finder" as I use the term
  6157. appeared, the Finder wasn't *usefully* scriptable:  it took FinderLib
  6158. and/or Finder Liaison and/or osaxen to help out.
  6159.  
  6160. As you note, the recording and modern events come with Finder Scripting
  6161. Extension.  Eventually, that will be rolled into Finder (at which point the
  6162. result from
  6163.  
  6164. tell application "Finder"
  6165.     version
  6166. end tell
  6167.  
  6168. will jump from a string containing a small number (currently 1.2) to one
  6169. containing Finder's version number...right now it returns the Extension's
  6170. version.
  6171.  
  6172.    --John
  6173.  
  6174. --
  6175. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6176. =========================================================================
  6177. Date:         Mon, 7 Nov 1994 23:58:35 -0800
  6178. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6179. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6180. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6181. Subject:      Re: Writing to a text file
  6182.  
  6183. >>
  6184. >> >Is there an osax which will allow me to read from and write to a text file?
  6185. >> >I know I can do this with the Scriptable Text Editor, but it seems a bit
  6186. >> >clunky.
  6187. >>
  6188. >> The read/write commands that are part of AppleScript 1.1 allow you to read
  6189. >> from and write to standard text files. In fact, I'm using one now to log my
  6190. >> PPP connect times. Version 1.1 of this oxax crashes on PowerMacs, but 1.1.1
  6191. >> ships as part of System 7.5.
  6192. >>
  6193. >OK--what are these specific commands?  I have AppleScript 1.1, but I can't
  6194. >find the right commands--I _think_ its "copy", from looking at "Language
  6195. >at a Glance" but i'm not sure.  Thanks.
  6196.  
  6197. Look at the dictionary for the Scripting Addition (from Apple) named
  6198. Read/Write Commands.  If you are on a Power Mac and the commands fail, it
  6199. means you have the broken old Scripting Addition.  The new one is in System
  6200. 7.5...it's also available (somewhere...I no longer know, since I no longer
  6201. care) on the net.  There were a couple of other broken ones (on Power Mac)
  6202. also...they're also fixed in 7.5 and available.
  6203.  
  6204.    --John
  6205.  
  6206. --
  6207. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6208. =========================================================================
  6209. Date:         Mon, 7 Nov 1994 23:58:40 -0800
  6210. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6211. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6212. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6213. Subject:      Re: Write to a File
  6214.  
  6215. >Hello
  6216. >
  6217. >I try to write to a file which works with the following script:
  6218. >
  6219. >set myString to current date
  6220. >set myFile to new file with prompt "Save the Server Log..." default name
  6221. >"Server Log"
  6222. >open for access myFile with write permission
  6223. >write myString of me to myFile
  6224. >close access myFile
  6225. >
  6226. >
  6227. >But something goes wrong the result of it in the file is:
  6228. >
  6229. >
  6230. >November 1994 22:27:47
  6231. >
  6232. >Why do I get so many funny caracters before the date ?????
  6233.  
  6234. The current date command doesn't return a string.  It returns a date object
  6235. (which has a couple of different representations, of which you are seeing
  6236. the raw "object specifier" form in your file, I think).
  6237.  
  6238. Try starting with this, instead:
  6239.  
  6240. set myString to current date as string
  6241.  
  6242. Now, myString really will contain a string, and all is well.
  6243.  
  6244. You can separate lines either by using the carriage return string "\r".
  6245. You could simply say
  6246.  
  6247. set myString to current date as string & "\r"
  6248.  
  6249. However, you will find that AppleScript will uglify your script by changing
  6250. the \r into an actual return.  If you use return often, you might want to
  6251. make one in one place, and use it by name:
  6252.  
  6253. property cr: "\r"
  6254. ...
  6255. set myString to current date as string & cr
  6256.  
  6257.    --John
  6258.  
  6259. --
  6260. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6261. =========================================================================
  6262. Date:         Tue, 8 Nov 1994 00:43:02 -0800
  6263. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6264. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6265. From:         Preston Holmes <pholmes@UCSD.EDU>
  6266. Subject:      PGP Scripts 1.0 (Eudora & PGP)
  6267.  
  6268. -----BEGIN PGP SIGNED MESSAGE-----
  6269.  
  6270. I've just dropped into "incoming" on gaea a set of scripts that work with
  6271. Eudora 2.1 and MacPGP 2.6ui (Scriptable!).  These scripts will
  6272. encrypt/decrypt/sign Eudora messages.
  6273.  
  6274. I'm not a real PGP buff, in fact I don't even use it (though may some day
  6275. want to use it).  But when I saw that PGP 2.6ui was scriptable I thought it
  6276. would be a great project to write some useful scripts for Eudora users, as
  6277. well as write some scripts for people who are trying to figure out how to
  6278. script Eudora (I myself am still not clear on using notify).  Any way there
  6279. are a few tricks I use in scripting Eudora which are mentioned in the docs.
  6280. The scripts are fully functional though there are still some places where
  6281. errors can throw them off.  If I have some time I will write more on error
  6282. handlers - so I'll take any bugs reports that people offer.
  6283.  
  6284. In my (limited) archie searches I found no US machines that keep PGP.  Is
  6285. this some sort of censorship?  If not, I would be happy to make an archive
  6286. of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
  6287. docs) and drop it off in gaea for the scriptable apps folder.  [Let me know
  6288. Fred if there is a restriction on this.]
  6289.  
  6290. Since I like to write portable scripts useful for the nonscripter, these
  6291. scripts use no non-system osaxen, they only requires the apps and
  6292. scriptable finder.  I also have tried to make them readable and well
  6293. commented for the newbie scripter.
  6294.  
  6295. I'm open to any comments or feedback on these scripts.  I'm also almost
  6296. done with the next version of my Duo & Duo Dock companion script "Docker"
  6297. if any Duo owners want to give it a try for me, let me know
  6298.  
  6299. PS note this message was signed by one of the PGP scripts ;-)
  6300.  
  6301. -Preston
  6302.  
  6303. -----BEGIN PGP SIGNATURE-----
  6304. Version: 2.6ui
  6305.  
  6306. iQBVAgUBLr8lKGJ6oWuwTm11AQEDOwH9HVIAzOo9bAec+DrcEjsm2Fs0BaisExE/
  6307. J24Mo1BG8TAb/i4ru8l2XxmFlfkP/yRRZXyuyZokW+pzax0+qQQQzw==
  6308. =Xr9H
  6309. -----END PGP SIGNATURE-----
  6310.  
  6311. --
  6312. Preston Holmes                       Neurobiology Unit
  6313. Dept. of Neuroscience, UCSD          Scripps Institution of Oceanography
  6314. pholmes@ucsd.edu                     NeuroWeb: "http://salk.edu/NeuroWeb/"
  6315. =========================================================================
  6316. Date:         Tue, 8 Nov 1994 01:00:17 -0800
  6317. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6318. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6319. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  6320. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  6321.  
  6322. At 00:43 11/8/94, Preston Holmes wrote:
  6323. >In my (limited) archie searches I found no US machines that keep PGP.  Is
  6324. >this some sort of censorship?  If not, I would be happy to make an archive
  6325. >of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
  6326. >docs) and drop it off in gaea for the scriptable apps folder.  [Let me know
  6327. >Fred if there is a restriction on this.]
  6328.  
  6329. Please, don't even think about it.  PGP is hard to find for the simple
  6330. reason that it is subject to export restrictions as a result of containing
  6331. encryption software.  The author would really like to stay out of jail
  6332. (spending Federal prison time was an active possibility for him last I
  6333. knew--something like 5 to 15).  He specifically requests that the
  6334. international version NOT be posted in the US.
  6335.  
  6336. In addition to the Federal problems, there are licensing issues...for
  6337. non-commercial use a suitable license is (seems to be) in place...for any
  6338. sort of commerical use, it is necessary to purchase the commercial version.
  6339.  
  6340. PGP is available in the US, via the machines at MIT.  The process of
  6341. getting it involves directories which do not appear in Archie searches
  6342. (because they don't last long enough).
  6343.  
  6344.    --John
  6345.  
  6346. --
  6347. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  6348. =========================================================================
  6349. Date:         Tue, 8 Nov 1994 10:18:36 +0100
  6350. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6351. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6352. From:         WalrathW <walrathw@RFERL.ORG>
  6353. Subject:      Re: Script Help
  6354.  
  6355. > ------ From: Macintosh Scripting Systems, 11/7/94 6:09 PM ------
  6356. > I want to be able to read in records from a text file and write them
  6357. > out again...The first character of each line is often a LineFeed
  6358. > (from a DOS text file) i want to test it (this works) and delete it
  6359. > if it is a linefeed...but when i put "characters 2 through (length of
  6360. > namefield) of namefield" into a variable it ends up with spaces
  6361. > between each of the characters...
  6362.  
  6363. I think if you write something like:
  6364.    text 2 through (length of nameField) of nameField
  6365. you'll get what you want.
  6366.  
  6367. > I tried to delete character 1 of the variable but apparently it
  6368. > doesn't know how to do that...
  6369. >
  6370. > Also is there a tighter way to do the loop of running through each
  6371. > record than what i've done with counting characters (pointer)?
  6372. <sniporama>
  6373. > I highly recommend Wayne Walrath's Acme Scripting Widgets package which
  6374. > includes several osax that would make you're job easier. The first is
  6375. > the
  6376.  
  6377. Dennis is right <grin> Wayne's widgets would not only decrease the running
  6378. time of your script, but also make your script a little cleaner. If you can't
  6379. get them to do what you need, send me a sample of the text and I'll see if I
  6380. can throw a script together for you.
  6381.  
  6382. -wayne
  6383. =========================================================================
  6384. Date:         Tue, 8 Nov 1994 05:59:02 -0500
  6385. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6386. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6387. From:         Kiran Wagle <groo@NETCOM.COM>
  6388. Subject:      Re: Best way to script "Shared" finder info flag?
  6389.  
  6390. On 11/07/94, WalrathW opined:
  6391.  
  6392. > This isn't always a good idea to do. If an application modifies resources in
  6393. > its resource fork, then it's not a good candidate for being a shareable app.
  6394.  
  6395. I was under the impression that apps that conform to Apple's guidelines
  6396. (read: not written by Microsoft) are not supposed to write to their own
  6397. resource forks?
  6398.  
  6399. ~ Kiran
  6400.  
  6401. --
  6402. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  6403. =========================================================================
  6404. Date:         Tue, 8 Nov 1994 05:59:16 -0500
  6405. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6406. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6407. From:         Kiran Wagle <groo@NETCOM.COM>
  6408. Subject:      Re: Copyright (was Re: Graphic Scripting & aete library
  6409.  
  6410. Perhaps if developers got email and/or phone calls saying "I'm thinking of
  6411. buying your app but I need something scriptable; could you send me a copy
  6412. of the 'aete', please?" they would realise that such information is useful,
  6413. and release it to archive sites.
  6414.  
  6415. It WOULD be nice to be able to look at dictionaries before buying an app.
  6416.  
  6417. ~ Kiran
  6418.  
  6419. --
  6420. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  6421. =========================================================================
  6422. Date:         Tue, 8 Nov 1994 12:03:48 +0100
  6423. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6424. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6425. From:         WalrathW <walrathw@RFERL.ORG>
  6426. Subject:      Re: Best way to script "Shared" finder info flag?
  6427.  
  6428. > > This isn't always a good idea to do. If an application modifies
  6429. > resources in
  6430. > > its resource fork, then it's not a good candidate for being a
  6431. > shareable app.
  6432. >
  6433. > I was under the impression that apps that conform to Apple's guidelines
  6434. > (read: not written by Microsoft) are not supposed to write to their own
  6435. > resource forks?
  6436.  
  6437. I didn't intend to suggest it was a good idea (even if you are a big company
  6438. in Seattle), it should never be done for any application you plan to
  6439. distribute or sell (my opinion is that anything you write and only plan to
  6440. use yourself can be as skanky as you can tolerate, not that I ever do this ;)
  6441.  ). The reasons being 1) the one we've discussed, namely that it screws up
  6442. the app's shareability, and 2) you could be running on a locked volume. There
  6443. may be others I'm forgetting or don't know, but this is not the best place to
  6444. discuss it.
  6445.  
  6446. -wayne
  6447. =========================================================================
  6448. Date:         Tue, 8 Nov 1994 08:32:24 -0600
  6449. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6450. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6451. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6452. Subject:      Re: Copyright (was Re: Graphic Scripting & aete library
  6453. In-Reply-To:  Your message of "Tue, 08 Nov 94 05:59:16 EST"
  6454.  
  6455. Kiran (and everyone else),
  6456.  
  6457. >Perhaps if developers got email and/or phone calls saying "I'm thinking of
  6458. >buying your app but I need something scriptable; could you send me a copy
  6459. >of the 'aete', please?" they would realise that such information is useful,
  6460. >and release it to archive sites.
  6461. >
  6462. >It WOULD be nice to be able to look at dictionaries before buying an app.
  6463.  
  6464. I've started requesting aetes from developers. I've already created it, and
  6465. Leonard Rosenthol has contributed the aetes from Stuffit Deluxe/Lite 3.5
  6466. (which is due out RSN). I'll putting more in there in the coming weeks, I'm
  6467. sure.
  6468.  
  6469. Cheers.
  6470.  
  6471. pf
  6472. =========================================================================
  6473. Date:         Tue, 8 Nov 1994 08:36:41 -0600
  6474. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6475. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6476. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6477. Subject:      Re: Writing to a text file
  6478. In-Reply-To:  Your message of "Mon, 07 Nov 94 20:56:53 PST"
  6479.  
  6480. Hi folks,
  6481.  
  6482. Kevin Purcell said....
  6483.  
  6484. >But that ain't what the list is for ... if you can find the answer
  6485. >elsewhere first then do that. Its called netiquette. I have noticed an
  6486. >alarming drop in the signal to noice ratio recently (to the point where
  6487. >people ask the same question that was asked on a few posts before).
  6488. >
  6489. >That said I think you will learn a lot more if you invest in a few (10s :-)
  6490. >of bucks in the AppleScript Language Guide. It really is THE reference!
  6491.  
  6492. I might also suggest that new subscribers grab the digests from gaea.
  6493.  
  6494. ftp://gaea.kgs.ukans.edu/applescript/docs/digests/
  6495.  
  6496. Search those for the topics you are interested. There is a huge amount of
  6497. collective wisdom in those digests. The on idle question that circulated a
  6498. couple of weeks ago was covered several months ago. So don't pass them up.
  6499.  
  6500. pf
  6501. =========================================================================
  6502. Date:         Tue, 8 Nov 1994 09:43:19 -0400
  6503. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6504. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6505. From:         Al Best <Best@GEMS.VCU.EDU>
  6506. Subject:      Sys 7.5 Launcher, Windowshade
  6507.  
  6508. How do I?:
  6509.  
  6510. I want the Launcher to go away:
  6511.  
  6512. Tell Application "Finder"
  6513.  Close Window "Launcher"
  6514. End Tell
  6515.  
  6516.  
  6517. I want WindowShade to do it's thing on a certain window.
  6518.  
  6519. Tell Application "WindowShade"
  6520.   Shrink Window "XXX"
  6521. End Tell
  6522.  
  6523. THANX!
  6524. ------------
  6525. Al Best, Dept of Biostatistics
  6526. Virginia Commonwealth University, Richmond VA 23298
  6527. 804-828-9824
  6528. Internet: Best@Ruby.VCU.Edu
  6529. =========================================================================
  6530. Date:         Tue, 8 Nov 1994 10:30:16 EST
  6531. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6532. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6533. From:         Elliotte Rusty Harold <elharo@SHOCK.NJIT.EDU>
  6534. Subject:      Re: Recordable Applications
  6535.  
  6536. > >Can anyone tell me how to find out what apps are recordable, not merely
  6537. > >scriptable? The only recordable apps I know of now are:
  6538. >
  6539. > Excel 5.0
  6540. > Word 6.0 (but it spits out DoScripts with Basic commands)
  6541. > Stuffit Deluxe/Lite
  6542. > InTouch 3.0
  6543. > Cirrus 2.0
  6544. > InfoDepot 2.0
  6545. > JPEG View 3.0 (freeware!)
  6546. > Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
  6547. > JMP 3.0
  6548. > PowerAgent
  6549. > Userland Frontier 2.1 (or later)
  6550. > WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
  6551.  
  6552. Is WP 3.1 really recordable?  I tried to record it a few days ago and got
  6553. absolutely nothing except the activate event.
  6554.  
  6555. Elliotte Rusty Harold
  6556. elharo@shock.njit.edu
  6557. =========================================================================
  6558. Date:         Tue, 8 Nov 1994 09:44:11 -0600
  6559. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6560. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6561. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6562. Subject:      Tom Pollard's GNU diff script
  6563.  
  6564. G'morning again,
  6565.  
  6566. Tom Pollard has contributed a GNU diff droplet script that I have moved into
  6567.  
  6568. ftp://gaea.kgs.ukans.edu/applescript/scripts/GNU_diff.sit.hqx
  6569.  
  6570. The script requires AppleScript 1.1, QuicKeys 3.0, and Mark Alldritt's Regular
  6571. Expressions and Choose Files & Folders extensions (from the Script Tools
  6572. collection). Tom's droplet is a user-friendly wrapper for the GNU diff
  6573. file-comparison utility. Be sure to read the Read Me file.
  6574.  
  6575. Cheers.
  6576.  
  6577. pf
  6578. =========================================================================
  6579. Date:         Tue, 8 Nov 1994 10:11:27 -0500
  6580. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6581. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6582. From:         Diana Oswald <cassa003@MAROON.TC.UMN.EDU>
  6583. Subject:      Filemaker Pro & Applescript
  6584.  
  6585. I'm running a script in conjunction with a MacHTTP server that allows WWW users
  6586. to search a filemaker pro data base.  It works great except if they try and
  6587. search for something that's not in the data base, then they get a cgi
  6588. application error, and the script stays on (I like my scripts to quit after
  6589. they're through - otherwise I get too many things going at once).  I'd like to
  6590. return a meaningful statement when their search comes up with nothing.  The most
  6591. promising suggestion I've gotten is displayed below - still gets a cgi
  6592. application error.  I'm sure it doesn't like the if answer = "", but this works
  6593. for checking to see if http_search_args are empty, so why won't it work for
  6594. this?  And if that's not the way to do it, then how?  Any suggestions?
  6595.  
  6596. -----------------------------------------------
  6597. tell application "FileMaker Pro"
  6598.                 Open alias "Policy Dev 1:Desktop Folder:MacHTTP:fm_form"
  6599.                 Show (every Record of Window "fm_form" whose Cell 7 = your_name)
  6600.                 copy Field 8 of Window "fm_form" to answer
  6601.                 Quit Application "FileMaker Pro"
  6602.         end tell
  6603.         if answer = "" then
  6604.                 quit
  6605.                 return http_10_header & "<H1>Sorry</H1> That name is not in my l
  6606. ist."
  6607.         else
  6608.                 quit
  6609.                 return http_10_header & "<H1>Here is your list!</H1><hr> " & ans
  6610. wer
  6611.         end if
  6612. ------------------------------------------------
  6613.  
  6614. Thanks for your time and consideration.
  6615.  
  6616. Sincerely,
  6617. =========================================================================
  6618. Date:         Tue, 8 Nov 1994 11:19:39 EST
  6619. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6620. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6621. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  6622. Subject:      Stack overflow error
  6623.  
  6624. I have a script that occasionally spits out a "Stack Overflow" error message.
  6625. The script uses Anarchie to get the contents of a directory out on the net and
  6626. displays it in a window.  Then it selects the window's contents and stuffs the
  6627. URL listing into a variable.
  6628.  
  6629. Is this the problem? Is the variable be reaching a limit on the size it can
  6630. use?. (I generally have 4+ Meg of RAM available when this runs and the allocated
  6631. memory for the applet is about 750K).
  6632.  
  6633. So I guess my question is, under what circumstances does this error occur? Has
  6634. anyone experienced this type of error message? How does one get rid of it?
  6635.  
  6636. --
  6637. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  6638. AOL:        kimsont@aol.com
  6639. eWorld:     kimsontran@eworld.com
  6640. --
  6641. =========================================================================
  6642. Date:         Tue, 8 Nov 1994 09:02:23 -0800
  6643. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6644. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6645. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  6646. Subject:      Re: Launching an app in the background
  6647.  
  6648. > > From <@uga.cc.uga.edu:owner-macscrpt@DARTCMS1.DARTMOUTH.EDU> Mon
  6649. > > Nov  7
  6650. >  18:37:17 1994
  6651. > >
  6652. > > Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU> writes:
  6653. > >
  6654. > > >I am running a script that launches StuffIt Expander. It has
  6655. > > >the potential of doing the launching while AfterDark is active.
  6656. > > >The problem I'm having is that launching an application while
  6657. > > >AfterDark is active is causing the application to not fully
  6658. > > >launch until AfterDark goes away (I move the mouse or press a key).
  6659. > >
  6660. > > When using After Dark, remember the Golden Rule: if it causes
  6661. > > you trouble, get rid of it.
  6662. >
  6663. > At the risk of getting too far off the track, I'll second that and add
  6664. > a vote for DarkSide 4.2.  IMHO, once you try it, you'll never go back
  6665. > to After Dark.  Will DarkSide solve your problem?
  6666. >
  6667. > ftp://mac.archive.umich.edu/util/screensaver/darkside/darkside4.2.
  6668. > sit.hqx
  6669. >
  6670. > Regards,
  6671. > Joe
  6672.  
  6673. I have been using Darkside (4.1) with good results. It seems to be working
  6674. fine with cron and AppleScript. Unfortunately, there is a push to use After
  6675. Dark because we just updated our license from 2.0 to 3.0 just for the purpose
  6676. of putting it on our PowerMacs (300 of them). My personal thought is greater
  6677. compatibility overrides any money that we have spent in the past.
  6678.  
  6679. Maybe we could get a refund from Berkeley for this wonderfully incompatible
  6680. product they have released.
  6681.  
  6682. I do believe that After Dark 3.0 now qualifies to be a Microsoft product; it
  6683. is big, slow and incompatible with other applications.
  6684.  
  6685. Has anyone else had a problem with Darkside besides Jaeson M. Engle's crashing
  6686. problem on startup? What system and computer are you running Jaeson? We're
  6687. using PowerMac 6100/60's s/16 MB running 7.5.
  6688.  
  6689. Greg Francis
  6690. =========================================================================
  6691. Date:         Tue, 8 Nov 1994 11:06:44 -0600
  6692. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6693. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6694. From:         Steve Alex <steve_alex@AIDT.EDU>
  6695. Subject:      PowerTalk again
  6696.  
  6697. Ok Apple, what have you done to me with system 7.5. I don't want to start
  6698. another PowerTalk argument, but what little I could do with scripting and
  6699. PowerTalk seems to have been destroyed by System 7.5.
  6700.  
  6701. I had set up a mail print server that just printed new mail messages that
  6702. came into a Visitor's mailbox to an attached printer (these are work order
  6703. forms in case you are curious why I would do that). The code was quit
  6704. simple, the core being telling the finder to print an item out of the mail
  6705. box and then telling KeyQuencer to hit the enter key. The below code,
  6706. without bells and whistle, would print out the first message in the mailbox
  6707.  
  6708.   tell application "finder"
  6709.     print item 1 of item 1 of item  "Technical Services"  --mail box
  6710.     tell application "KQ Apple Events"
  6711.       DoScript "waitwindow dialog open
  6712.         key enter"
  6713.     end tell
  6714.   end tell
  6715.  
  6716. Under 7.5 I now get a error message that item 1 of .. doesn't understand
  6717. the print message. I can't open it, copy it, move it, or do anything except
  6718. confirm its existence. I could not do any of that before, but I could at
  6719. least print it.
  6720.  
  6721. Again, thanks a lot Apple. When are you going to get off you butts and
  6722. provide some scripting support for PowerTalk (I know you'r out there)?
  6723.  
  6724.  
  6725. Steve Alex                                 (steve_alex@aidt.edu)
  6726.  
  6727.       _/_/_/     _/   _/_/_/_/    _/_/_/_/  Alabama Industrial
  6728.    _/      _/   _/   _/      _/    _/       Development Training
  6729.   _/_/_/_/_/   _/   _/      _/    _/        75 TechnaCenter Dr.
  6730.  _/      _/   _/   _/      _/    _/         Montgomery AL, 36117
  6731. _/      _/   _/   _/_/_/_/      _/          (205) 242-2675
  6732. =========================================================================
  6733. Date:         Tue, 8 Nov 1994 09:23:24 -0800
  6734. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6735. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6736. From:         Kevin Purcell <kevinpu@ATM.COM>
  6737. Subject:      Re: Write to a File
  6738.  
  6739. >You can separate lines either by using the carriage return string "\r".
  6740. >You could simply say
  6741. >
  6742. >set myString to current date as string & "\r"
  6743. >
  6744. >However, you will find that AppleScript will uglify your script by changing
  6745. >the \r into an actual return.  If you use return often, you might want to
  6746. >make one in one place, and use it by name:
  6747. >
  6748. >property cr: "\r"
  6749. >...
  6750. >set myString to current date as string & cr
  6751.  
  6752.  
  6753. You don't even need to do this -- space, tab and return are defined a
  6754. symbolic string constants so
  6755.  
  6756. set myString to current date as string & return
  6757.  
  6758. works fine and is more readable to boot.
  6759.  
  6760. Kevin Purcell      Attachmate Corp        (206) 649-6489
  6761. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  6762. =========================================================================
  6763. Date:         Tue, 8 Nov 1994 09:25:09 PDT
  6764. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6765. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6766. From:         Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
  6767. Subject:      Dictionary
  6768.  
  6769. In response to:
  6770.  
  6771. > >I assumed that. Which ones are they? The dictionary is not
  6772. > > intuitive.
  6773.  
  6774.  Kevin Purcell writes:
  6775.  
  6776. KP> Read/Write Commands scripting addition.
  6777. KP>
  6778. KP> Drag the osax to script editor to inspect the aete.
  6779.  
  6780. But that's not always a good idea. So far as I can tell, the stuff in
  6781. the dictionary is no more trustworthy than the comments in a Fortran
  6782. code. There doesn't seem to by anything that checks for consistency
  6783. between what the dictionary says and what the thingy actually does.
  6784.  
  6785. In the case of read/write, above, the dictionary is just wrong. It says:
  6786.  
  6787. RW> read: Read from file.
  6788. RW>     read anything -- reference number or file to read
  6789. RW>             using delimiters list -- Delimiters to use. May use 1 or 2
  6790. RW> delimiters.
  6791. RW>             using delimiter anything -- Delimiters to use. May use 1 or 2
  6792. RW> delimiters.
  6793. RW>             [as anything] -- read this data in this form
  6794. RW>             [for integer] -- read for this number of bytes
  6795. RW>             [before string] -- Read to this delimiter excluding it. A
  6796. RW> delimiter is a single character.
  6797. RW>             [until string] -- Read to this delimiter including it. A
  6798. RW> delimiter is a single character.
  6799. RW>             [to integer] -- read from current mark to this byte
  6800. RW>             [from integer] -- read from this byte
  6801. RW>     Result: anything -- data returned or error
  6802.  
  6803. which implies that "using delimiters list" and "using delimiter
  6804. anything" are both *required* when invoking read. In fact, according to
  6805. the publication "Scripting Additions Guide, Apple ID 030-5098-A, the
  6806. form is:
  6807.  
  6808. SAG> read referenceToFile
  6809.  
  6810. with everything else optional. referenceToFile, by the way, can't be
  6811. just any old thing as the dictionary implies, it must be a reference of
  6812. the form "file..." or "alias..." or a file reference number.
  6813.  
  6814. In fact, "using" isn't even an option except as a subunit of an "as"
  6815. clause, and the trailing "s" on delimiters is purely optional.
  6816.  
  6817. Doggone - you just don't know whom to trust these days.
  6818.  
  6819. In this case I think the dictionary is wrong and the manual is right. In
  6820. the general case, it's best to consult the listing of the OSAX, which
  6821. may be hard to come by.
  6822.  
  6823. Have fun,
  6824. >>>>>Nelson@nbyrne.SAIC.com
  6825.      Nelson Byrne
  6826.      SAIC  LOC#001/MS#C2
  6827.      10260 Camp Uspoint Drive
  6828.      Sandy Eggo, CA 92121
  6829. >>>>>(619) 546-6485
  6830. =========================================================================
  6831. Date:         Tue, 8 Nov 1994 09:26:06 -0800
  6832. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6833. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6834. From:         Steve Michel <michel@NETCOM.COM>
  6835. Subject:      Re: Write to a File
  6836.  
  6837. John Baxter wrote:
  6838.  
  6839. >set myString to current date as string & "\r"
  6840. >
  6841. >However, you will find that AppleScript will uglify your script by changing
  6842. >the \r into an actual return.  If you use return often, you might want to
  6843. >make one in one place, and use it by name:
  6844. >
  6845. >property cr: "\r"
  6846. >...
  6847. >set myString to current date as string & cr
  6848. >
  6849.  
  6850. You don't need to define the property. AppleScript has a return constant, so,
  6851.  
  6852. set myString to current date as string & return
  6853.  
  6854. works.
  6855.  
  6856. Steve
  6857. =========================================================================
  6858. Date:         Tue, 8 Nov 1994 09:45:49 -0800
  6859. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6860. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6861. From:         Kevin Purcell <kevinpu@ATM.COM>
  6862. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  6863.  
  6864. >In my (limited) archie searches I found no US machines that keep PGP.  Is
  6865. >this some sort of censorship?  If not, I would be happy to make an archive
  6866. >of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
  6867. >docs) and drop it off in gaea for the scriptable apps folder.  [Let me know
  6868. >Fred if there is a restriction on this.]
  6869.  
  6870. You can get it freely from MIT but you need to send them a request stating
  6871. that you won't export it and are an American citizen or resident (those
  6872. pesky "encryption as munitions" export control rules and probably rules
  6873. property rights to RSAs public keys schemes). Of course data knows no
  6874. border and there are copies of all versions of PGP outside the US.
  6875.  
  6876. I think if you read you license you will find you're not allowed to
  6877. redistribute it.
  6878.  
  6879. There is also supposed to be an international version which avoids these
  6880. problems (probably by being written outside of the US).
  6881.  
  6882. For those interested by a copy of "Applied Cryptography", an excellent book
  6883. with plenty of source code. Due to the First Ammendement the book can be
  6884. published an exported but the sample code disk (even though it is identical
  6885. to the code in the book) can be exported! I beleive that MIT are going to
  6886. publish a book on the internals of PGP for a similar reason.
  6887.  
  6888.  
  6889. Kevin Purcell      Attachmate Corp        (206) 649-6489
  6890. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  6891. =========================================================================
  6892. Date:         Tue, 8 Nov 1994 07:33:50 -1000
  6893. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6894. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6895. From:         Pete Hinely <phinely@UHUNIX.UHCC.HAWAII.EDU>
  6896. Subject:      Announcement:  TEXT processing utility
  6897.  
  6898. Greetings,
  6899.   I have created an AppleScript to somewhat intelligently remove line
  6900. returns from text files.  Its behaviour is simple, but generally
  6901. effective at cleaning up text files.
  6902.  
  6903. HERE IS THE HOW SCRIPT BEHAVES:
  6904. If the preceding line is longer than the threshold hold length, then the
  6905. line return between the current line and the preceding line is removed.
  6906.  
  6907.   There is no documentation as of yet so here is the documentation!
  6908. The droplet supports drag-n-drop of files/folders.
  6909. It only processes files of type TEXT
  6910. It does not modify the original file, it creates a separate output file
  6911. with a paragraph-mark suffix on the end of its name.
  6912. To set the threshold, double click to open the droplet, then click the
  6913. CANCEL button.  You can then set the threshold character length.
  6914.  
  6915.  
  6916. I AM NO LONGER ON THE LIST, SO EMAIL ME DIRECTLY IF YOU ARE INTERESTED.
  6917.  
  6918. aloha kaua,
  6919. -peter
  6920. =========================================================================
  6921. Date:         Tue, 8 Nov 1994 12:10:38 -0600
  6922. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6923. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6924. From:         Fred Terry <pfterry@LKS.CSI.COM>
  6925. Subject:      Re: Announcement: TEXT processing utility
  6926. In-Reply-To:  Your message of "Tue, 08 Nov 94 07:33:50 -1000"
  6927.  
  6928. Peter,
  6929.  
  6930. >I AM NO LONGER ON THE LIST, SO EMAIL ME DIRECTLY IF YOU ARE INTERESTED.
  6931.  
  6932. Please send me a copy of the script. Would you mind my putting it on gaea?
  6933.  
  6934. Thanks.
  6935.  
  6936. pf
  6937. =========================================================================
  6938. Date:         Tue, 8 Nov 1994 10:12:50 LCL
  6939. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6940. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6941. From:         Tim Keanini <Tim_Keanini@BRODER.COM>
  6942. Subject:      Re[2]: PGP Scripts 1.0 (Eudora & PGP)
  6943.  
  6944. >Subject: Re: PGP Scripts 1.0 (Eudora & PGP)
  6945.  
  6946. >Preston Holmes wrote:
  6947. >In my (limited) archie searches I found no US machines that keep PGP.  Is
  6948. >this some sort of censorship?  If not, I would be happy to make an archive
  6949. >of MacPGP 2.6ui (scriptable but no docs) and 2.3 (not scriptable but with
  6950. >docs) and drop it off in gaea for the scriptable apps folder.  [Let me know
  6951. >Fred if there is a restriction on this.]
  6952.  
  6953. This issue of encryption is a large can of worms and anyone really interested in
  6954. it should get trusted information from the EFF (Electronic Frontier Foundation)
  6955. and the cypherpunks mailing list.  Enough said.
  6956.  
  6957. MIT has pgp available by way of net-dist.mit.edu
  6958. You anon ftp there, and in the PGP directory there is a README that will explain
  6959. how to get it.  You have to telnet back in and answer a few questions to agree
  6960. to a policy.  You are then given a directory name to grab the distribution from.
  6961.  
  6962. Please mail me if you have questions on pgp at:
  6963.  
  6964. blast@worldbit.com
  6965.  
  6966. The first time I saw PGP for the Mac I felt that is really needed some help on
  6967. the UI side of things.  PGP for UNIX is realy nice because you can pipe things
  6968. through it.  Things that require encryption can just be piped on through and
  6969. BOOM, privacy galore.  The MacPGP is odd because if you dont write applescipt,
  6970. frontier scripts, or quickeys sequences for it, it is really inconvienient to
  6971. use.  Just my $000,000,000.02.
  6972.  
  6973. --blast
  6974. =========================================================================
  6975. Date:         Wed, 9 Nov 1994 09:10:00 +1300
  6976. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6977. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  6978. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  6979.               NZ" <LDO@WAIKATO.AC.NZ>
  6980. Subject:      Re: Copyright (was Re: Graphic Scripting & aete library
  6981.  
  6982. "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  6983.  
  6984. >Lawrence D'Oliveiro writes:
  6985. >>
  6986. >>As I understood it, copyright applies to the expression of information, not
  6987. >>to the information itself. Given a certain set of terminology information,
  6988. >>the aete syntax doesn't give you many choices in how you express that
  6989. >>information.
  6990. >
  6991. >Yes...and the 'aete' is an expression of information.
  6992.  
  6993. Yes, but as I undertand it, it is only copyrightable if it's a sufficiently
  6994. unique expression of that information. There is very little creativity or
  6995. free choice involved in encoding terminology information in an aete.
  6996.  
  6997. Now, if you were to express the terminology as a poem, or as a stage display,
  6998. or as an entry in the Obfuscated C contest, you should be able to copyright
  6999. that...
  7000.  
  7001. >Then there's the fact that neither Fred nor Andy can (probably) afford to
  7002. >defend the case should one be filed...
  7003.  
  7004. That's what it comes down to in the end, doesn't it? The threat of legal
  7005. action can be just as effective as the legal action itself. And the threat
  7006. isn't subject to rulings by the courts...
  7007.  
  7008. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7009. Computer Services Dept                     fax: +64-7-838-4066
  7010. University of Waikato            electric mail: ldo@waikato.ac.nz
  7011. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  7012. =========================================================================
  7013. Date:         Tue, 8 Nov 1994 15:50:27 EST
  7014. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7015. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7016. From:         Kim-son Tran <ktran@CC.ATINC.COM>
  7017. Subject:      File Marker
  7018.  
  7019. Using Apple's Read/Write commands, how do you determine the current file marker
  7020. position during a read or write?  Is there a more elegant way than using a
  7021. variable within the script for calculating offsets or something similiar
  7022. algorithm?  (I'd like to use the current file marker position to update the
  7023. scriptable progress bar).
  7024.  
  7025. Also, how would I optimize reading a chunk of one text file and writing that
  7026. same chunk to another file for speedier performance?  Would reading the file as
  7027. binary be truly faster or does Applescript crawl when doing this type of
  7028. processing? Does anyone have sample scripts they've written using binary read/
  7029. write?
  7030.  
  7031. --
  7032. Internet:   ktran@cc.atinc.com or tk@cc.atinc.com
  7033. AOL:        kimsont@aol.com
  7034. eWorld:     kimsontran@eworld.com
  7035. --
  7036. =========================================================================
  7037. Date:         Tue, 8 Nov 1994 21:17:23 +0000
  7038. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7039. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7040. From:         Bill Bedford <billb@MOUSA.DEMON.CO.UK>
  7041. Subject:      Re: Recordable Applications
  7042.  
  7043. >>Can anyone tell me how to find out what apps are recordable, not merely
  7044. >>scriptable? The only recordable apps I know of now are:
  7045. >
  7046. >Excel 5.0
  7047. >Word 6.0 (but it spits out DoScripts with Basic commands)
  7048. >Stuffit Deluxe/Lite
  7049. >InTouch 3.0
  7050. >Cirrus 2.0
  7051. >InfoDepot 2.0
  7052. >JPEG View 3.0 (freeware!)
  7053. >Snippets/Decoder Ring (which I have but never tried recording -- poor UI)
  7054. >JMP 3.0
  7055. >PowerAgent
  7056. >Userland Frontier 2.1 (or later)
  7057. >WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
  7058. >
  7059. >With the AppleScript Scripters kit they provided a guide to Scriptable
  7060. >Applications (most of these are in there).
  7061. >
  7062.  
  7063. Plus three new(ish) ones
  7064.  
  7065. Anarchie 1.40
  7066. Finger 1.50
  7067. Netscape 0.9b
  7068.  
  7069. ------------------------------------------------------------------------
  7070. Bill Bedford                                   Designer of Photo-Etches
  7071. billb@mousa.demon.co.uk
  7072. +44 9505 327
  7073.  
  7074.          Living on a island gives the world a different perspective
  7075. ------------------------------------------------------------------------
  7076. =========================================================================
  7077. Date:         Tue, 8 Nov 1994 22:26:14 +0100
  7078. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7079. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7080. From:         WalrathW <walrathw@RFERL.ORG>
  7081. Subject:      creating "date" Descriptor
  7082.  
  7083. I need some hints on the easiest way to create an AEDesc of type date.
  7084.  
  7085. I found the class definition in the 'aeut' resource of the English dialect,
  7086. so I presume I could build one by adding the individual properties into a
  7087. record descriptor of type 'ldt ', but this seems like too much work. I have a
  7088. feeling I must be able to get by easier than that.
  7089.  
  7090. I sent myself an AE with a date object in it and checked out the size of the
  7091. descriptor data: 8 bytes. Is this the seconds since the dawn of mac time with
  7092. four bytes to spare?
  7093.  
  7094. Ideally I would like to be able to call GetDateTime(), then pass this value
  7095. to the AE Manager and have it get coerced properly. Possible?
  7096.  
  7097. On a related note, how can I find out what AE Handlers, coercion and all, are
  7098. installed in the system (or an application)? I tried using the Apple fkey for
  7099. this purpose but it hung my Quad800 just as the dialog box came up. I didn't
  7100. try twice.
  7101.  
  7102. -wayne
  7103. =========================================================================
  7104. Date:         Tue, 8 Nov 1994 13:56:53 -0800
  7105. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7106. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7107. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7108. Subject:      Re: Best way to script "Shared" finder info flag?
  7109.  
  7110. >On 11/07/94, WalrathW opined:
  7111. >
  7112. >> This isn't always a good idea to do. If an application modifies resources in
  7113. >> its resource fork, then it's not a good candidate for being a shareable app.
  7114. >
  7115. >I was under the impression that apps that conform to Apple's guidelines
  7116. >(read: not written by Microsoft) are not supposed to write to their own
  7117. >resource forks?
  7118. >
  7119.  
  7120. The flag in question isn't in the resource fork of the file...it is
  7121. maintained in the file system, in the "Finder Information".  When set, it
  7122. informs Finder that multiple launches (normally on different machines) are
  7123. OK.
  7124.  
  7125.    --John
  7126.  
  7127. --
  7128. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7129. =========================================================================
  7130. Date:         Wed, 9 Nov 1994 00:09:22 +0100
  7131. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7132. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7133. From:         WalrathW <walrathw@RFERL.ORG>
  7134. Subject:      Re: Filemaker Pro & Applescript
  7135.  
  7136. > return a meaningful statement when their search comes up with nothing.  The
  7137. most
  7138. > promising suggestion I've gotten is displayed below - still gets a cgi
  7139. > application error.  I'm sure it doesn't like the if answer = "", but this
  7140. works
  7141. > for checking to see if http_search_args are empty, so why won't it work for
  7142. > this?  And if that's not the way to do it, then how?  Any suggestions?
  7143.  
  7144. If you are getting some sort of error back from FMP, you should have your
  7145. statements wrapped in a try/on error/end block. Then if the error catcher
  7146. fires, you can just return that message back to the user, or alternately
  7147. return one of your own choosing. I seem to recall that FMP could be a little
  7148. finicky at times when it was being scripted.
  7149.  
  7150. try
  7151.   tell app "FileMaker Pro"
  7152.    --blah, blah
  7153.   end tell
  7154. on error errMsg number errNum
  7155.   -- errMsg contains the text describing the error and errNum the error
  7156. number
  7157.   return http_10_header & errNum & "  " & errMsg
  7158.  
  7159.   -- or, if you prefer, send back your own message.
  7160.   --return http_10_header & "Sorry, all out of cheeseburgers and pepsi
  7161. today."
  7162. end try
  7163.  
  7164. It's not too that hard to see what's going on within your scripts while they
  7165. are running. Just write a little handler which sends its argument to a
  7166. Scriptable Text Editor window, and like magic, you've got real-time debug
  7167. information coming up in front of you. Sprinkle these debug statements all
  7168. through your script to see the value of variables, results, etc. It's safe
  7169. and fun for the whole family!
  7170.  
  7171.  
  7172. -wayne
  7173. =========================================================================
  7174. Date:         Tue, 8 Nov 1994 18:12:47 +0000
  7175. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7176. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7177. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  7178. Subject:      Re: Launching an app in the background
  7179.  
  7180. >I do believe that After Dark 3.0 now qualifies to be a Microsoft product; it
  7181. >is big, slow and incompatible with other applications.
  7182. >
  7183. >Has anyone else had a problem with Darkside besides Jaeson M. Engle's crashing
  7184. >problem on startup? What system and computer are you running Jaeson? We're
  7185. >using PowerMac 6100/60's s/16 MB running 7.5.
  7186. >
  7187. >Greg Francis
  7188. I'm running a Quadra 660av, sys 7.1, 8 physical RAM (RAMTripled to 24). I
  7189. have 4 programs that run all the time (MacHTTP, MailShare, MacMud (esp.
  7190. crash prone btw), and Finder Liaison 1.1, in lieu of the SF). On top of
  7191. these, this is my normal workstation so, many others tend to be running at
  7192. various times.
  7193.  
  7194. And I agree, AD 3.0 is looking very M*croS*ft-ish. Yuck!
  7195.  
  7196. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  7197.          www server: http://josaiah.sewanee.edu/
  7198.         Elomense(MUD): josaiah.sewanee.edu 1999
  7199. =========================================================================
  7200. Date:         Tue, 8 Nov 1994 21:03:04 -0500
  7201. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7202. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7203. From:         Brad Ackerman <brad@N1MNB.OAU.ORG>
  7204. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  7205.  
  7206. >You can get it freely from MIT but you need to send them a request stating
  7207. >that you won't export it and are an American citizen or resident (those
  7208. >pesky "encryption as munitions" export control rules and probably rules
  7209. >property rights to RSAs public keys schemes). Of course data knows no
  7210. >border and there are copies of all versions of PGP outside the US.
  7211.  
  7212. In other words, you lie through your teeth.  [Unfortunately, being a US
  7213. resident isn't a lie for me, but other parts may be.]
  7214.  
  7215. >I think if you read you license you will find you're not allowed to
  7216. >redistribute it.
  7217.  
  7218. Correct.  Of course, this is invalid outside of the United States.
  7219.  
  7220.  
  7221.  
  7222.  ===============================================================================
  7223. Brad Ackerman N1MNB                                           brad@n1mnb.oau.org
  7224. Micro$oft-free since 1978            Finger this acct for key -->  brad@gate.net
  7225. PGP:   C3 0D 6F 6B A6 7F 22 6C   93 A3 FE 00 D6 70 9E 99     (by mail or finger)
  7226. =========================================================================
  7227. Date:         Tue, 8 Nov 1994 19:40:07 -0800
  7228. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7229. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7230. From:         "Robert W. Harder" <harder@ENGR.ORST.EDU>
  7231. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  7232.  
  7233. Let's leave the problem of getting MacPGP to the individual and go ahead
  7234. and post the scripts that have been written.
  7235.  
  7236. BTW, I have System 7.5 and got an RSA key with it (went through the notary
  7237. and all that). Can that key be used with PGP? It is certainly verified, and
  7238. that should be worth more than other people's signature on the public key.
  7239.  
  7240.  
  7241.                    ,,,
  7242.                  `(. .)'
  7243.  o-------------oOo-(_)-oSu-------------------------------o
  7244.  |   |   |   |   |    Robert W. Harder   |   |   |   |   |
  7245.  |    Windsor, California    |   harder@engr.orst.edu    |
  7246.  |   | Corvallis, Oregon |   |   harderr.rhn.orst.edu    |
  7247.  |   |   503-737-9919    |   |   |    Wilson 419 |   |   |
  7248.  |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
  7249.  |,,.U,/,\.,\\s,,|,\A|,,.F\/,r,.,|,o/T,.//,,c|\\\/,,,|\\,|
  7250. =========================================================================
  7251. Date:         Tue, 8 Nov 1994 22:50:39 -0700
  7252. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7253. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7254. From:         "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
  7255. Subject:      Re: Recordable Applications -Reply
  7256.  
  7257. 3.1 is not currently recordable to applescript.  It is, however,
  7258. recordable to its own macro language and which is capable of
  7259. interfacing with AppleScript (AS can call macros and Macros can run
  7260. scripts...)
  7261.  
  7262. Andrew Cemelli
  7263. Systems Engineer, Novell
  7264. (ANDYC@WordPerfect.com)
  7265. ---------------------------------------------------
  7266. The fact that I'm opinionated is not my employer's fault.
  7267. ---------------------------------------------------
  7268. .
  7269.  
  7270. >>> Elliotte Rusty Harold <elharo@SHOCK.NJIT.EDU> - 11/8/94 7:30 AM
  7271. >>>
  7272. > >Can anyone tell me how to find out what apps are recordable, not
  7273. merely
  7274. > >scriptable? The only recordable apps I know of now are:
  7275. <...deleted...>
  7276. > WordPerfect 3.0 (so buggy as to be unusable -- 3.1 fixes a lot)
  7277.  
  7278. Is WP 3.1 really recordable?  I tried to record it a few days ago and
  7279. got absolutely nothing except the activate event.
  7280.  
  7281. Elliotte Rusty Harold elharo@shock.njit.edu
  7282. =========================================================================
  7283. Date:         Tue, 8 Nov 1994 20:23:02 -0800
  7284. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7285. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7286. From:         "Carlin E. Wiegner" <cew@LELAND.STANFORD.EDU>
  7287. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  7288.  
  7289. >BTW, I have System 7.5 and got an RSA key with it (went through the notary
  7290. >and all that). Can that key be used with PGP? It is certainly verified, and
  7291. >that should be worth more than other people's signature on the public key.
  7292.  
  7293. Hey, how did getting the RSA key go. It looked like a pain in the butt. Oh
  7294. well, can you pass on any information you get....
  7295. CW
  7296.  
  7297. Carlin Edward Wiegner               e-mail: cew@leland.stanford.edu
  7298. P.O. Box 9998                       www:  http://quark.stanford.edu
  7299. Stanford, CA 94309
  7300. =========================================================================
  7301. Date:         Tue, 8 Nov 1994 20:51:12 -0800
  7302. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7303. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7304. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7305. Subject:      Re: Write to a File
  7306.  
  7307. >>You can separate lines either by using the carriage return string "\r".
  7308. >>You could simply say
  7309. >>
  7310. >>set myString to current date as string & "\r"
  7311. >>
  7312. >>However, you will find that AppleScript will uglify your script by changing
  7313. >>the \r into an actual return.  If you use return often, you might want to
  7314. >>make one in one place, and use it by name:
  7315. >>
  7316. >>property cr: "\r"
  7317. >>...
  7318. >>set myString to current date as string & cr
  7319. >
  7320. >
  7321. >You don't even need to do this -- space, tab and return are defined a
  7322. >symbolic string constants so
  7323. >
  7324. >set myString to current date as string & return
  7325. >
  7326. >works fine and is more readable to boot.
  7327.  
  7328. I thought return might be so defined.  I'd rather not use it myself (but
  7329. should have mentioned it) simply because the poor old word "return" has two
  7330. meanings, totally different.  AppleScript may not have any trouble with
  7331. that, but I do.
  7332.  
  7333. And yes,
  7334.    return return
  7335. is a legal AppleScript statement, and manages to do what one would expect.
  7336. And the formatting does help (if you set it up right), since the first
  7337. return is formatted as a language keyword, and the second as an application
  7338. keyword.
  7339.  
  7340. Once again, I'm glad I didn't write that parser!  --John
  7341.  
  7342. --
  7343. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7344. =========================================================================
  7345. Date:         Tue, 8 Nov 1994 21:32:11 -0800
  7346. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7347. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7348. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7349. Subject:      Re: creating "date" Descriptor
  7350.  
  7351. >I need some hints on the easiest way to create an AEDesc of type date.
  7352. >
  7353. >I found the class definition in the 'aeut' resource of the English dialect,
  7354. >so I presume I could build one by adding the individual properties into a
  7355. >record descriptor of type 'ldt ', but this seems like too much work. I have=
  7356.  a
  7357. >feeling I must be able to get by easier than that.
  7358.  
  7359. Despite what the 'aeut' implies, an 'ldt ' descriptor is actually an 8 byte
  7360. binary number, in the long date time format...signed seconds since (or
  7361. before) the start of January 1, 1904 [necessarily ignoring leap seconds].
  7362.  
  7363. >
  7364. >Ideally I would like to be able to call GetDateTime(), then pass this value
  7365. >to the AE Manager and have it get coerced properly. Possible?
  7366.  
  7367. Use GetDateTime () to get the low word of the LongDateTime type, and put a
  7368. zero into the top (works through February 6 of 2040 at 6:28:15).  IM: OS
  7369. Utilities types LongDateTime as a comp (the 64-bit SANE integer type).  But
  7370. the newer Universal headers type it as
  7371.     typedef wide LongDateTime;
  7372.  
  7373. where type wide is
  7374.     struct wide {
  7375.         SInt32           hi;
  7376.         UInt32           lo;
  7377.     };
  7378. typedef struct wide wide, *WidePtr;
  7379.  
  7380. and SInt32 and UInt32 are what you think they are.
  7381.  
  7382. So, for example:
  7383.    LongDateTime d =3D {0, 0};
  7384.  
  7385.    GetDateTime (&d.lo);
  7386.  
  7387. You can also probably create record like this (using Frontier notation):
  7388.  
  7389.    {'want': 'ldt ', 'from': nil, 'form': 'name', 'seld': "a string
  7390. representing the date and time"}
  7391.  
  7392. then coerce that to a record, and coerce that to an 'ldt '.
  7393.  
  7394. I haven't tried the above in C.  In Frontier, I coerce between 'ldt ' and
  7395. =46rontier 'date' (the 4 byte seconds since start-of-time, as an unsigned
  7396. value) with these scripts:
  7397.  
  7398. on fromLongDate (aLongDate)
  7399.     if typeOf (aLongDate) =3D=3D binaryType and getBinaryType (aLongDate) =
  7400. =3D=3D 'ldt '
  7401.         if number (binary (string.mid (aLongDate, 1, 4))) !=3D 0
  7402.             scriptError (displayString (aLongDate) + " is out of range for
  7403. conversion to a date.")
  7404.         return (date (binary (string.mid (aLongDate, 5, 4))))
  7405.     else  =AB It's not a long date...try just coercing it to date
  7406.         return (date (aLongDate))
  7407.  
  7408. and
  7409.  
  7410. on toLongDate (aDate)
  7411.     local (longDateType =3D 'ldt ', result)
  7412.     if typeOf (aDate) =3D=3D binaryType and getBinaryType (aDate) =3D=3D lon=
  7413. gDateType
  7414.         return (aDate) =AB It=B9s already a long date
  7415.     aDate =3D date (aDate)
  7416.     result =3D binary (string (binary (0)) + string (binary (aDate)))
  7417.     setBinaryType (@result, longDateType)
  7418.     return (result)
  7419.  
  7420. >
  7421. >On a related note, how can I find out what AE Handlers, coercion and all, a=
  7422. re
  7423. >installed in the system (or an application)? I tried using the Apple fkey f=
  7424. or
  7425. >this purpose but it hung my Quad800 just as the dialog box came up. I didn'=
  7426. t
  7427. >try twice.
  7428. >
  7429.  
  7430. I've had that hang (both IIci under 7.1 and 8100 under 7.1.2), but only
  7431. when Finder is the frontmost application, and not with my current System
  7432. installation (7.5 on either machine).  It's been discussed here, with no
  7433. definitive statement as to what conditions are necessary to the failure.
  7434. Other users of the FKEY have never seen it.  I currently avoid using it
  7435. with Finder in front if I have many apps open or any unsaved work, just in
  7436. case.
  7437.  
  7438.    --John the longwinded
  7439.  
  7440. --
  7441. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7442. =========================================================================
  7443. Date:         Tue, 8 Nov 1994 23:40:55 -0800
  7444. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7445. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7446. From:         "Robert W. Harder" <harder@ENGR.ORST.EDU>
  7447. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  7448.  
  7449. >>BTW, I have System 7.5 and got an RSA key with it (went through the notary
  7450. >>and all that). Can that key be used with PGP? It is certainly verified, and
  7451. >>that should be worth more than other people's signature on the public key.
  7452. >
  7453. >Hey, how did getting the RSA key go. It looked like a pain in the butt. Oh
  7454. >well, can you pass on any information you get....
  7455. >CW
  7456.  
  7457. That wasn't so bad once I got past the crashing PowerTalk. You need three
  7458. forms of ID, one or two of which must be photo ID. A credit card will
  7459. suffice for the third. You print out a form from the digisign app which has
  7460. "garbage" that means something to RSA. They send you back a disk with a
  7461. signer file onto which you drop files (with PowerTalk turned on). You don't
  7462. have to send a disk in, though you may want to send in the printed form
  7463. electronically as well. Both disks come back. Until encryption/signing is
  7464. more integrated to the system (even with the unstable PT it's not great--I
  7465. don't have PT on now), I probably just won't use it. Too bad, it's like
  7466. sending a letter in an envelope not a postcard--nothing major, but good to
  7467. have.
  7468.  
  7469. Am I straying from scripting? Better to keep this on CypherPunks unless we
  7470. are scripting the stuff...
  7471.  
  7472.  
  7473.                    ,,,
  7474.                  `(. .)'
  7475.  o-------------oOo-(_)-oSu-------------------------------o
  7476.  |   |   |   |   |    Robert W. Harder   |   |   |   |   |
  7477.  |    Windsor, California    |   harder@engr.orst.edu    |
  7478.  |   | Corvallis, Oregon |   |   harderr.rhn.orst.edu    |
  7479.  |   |   503-737-9919    |   |   |    Wilson 419 |   |   |
  7480.  |   |   |   |   |   |   |   |   |   |   |   |   |   |   |
  7481.  |,,.U,/,\.,\\s,,|,\A|,,.F\/,r,.,|,o/T,.//,,c|\\\/,,,|\\,|
  7482. =========================================================================
  7483. Date:         Wed, 9 Nov 1994 10:38:00 N
  7484. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7485. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7486. From:         "Dr. Levy'S Lab, Gilat" <VFJLEV@VOLCANI.BITNET>
  7487. Subject:      Re: Writing to a text file
  7488.  
  7489. Re: Writing to a text file
  7490. Dennis Whiteman says:
  7491.  
  7492. >The commands are contained in an Apple osax called Read/Write Commands
  7493. >located in the Scripting Additions folder of your Extensions folder. Drag
  7494. >that osax to the Script Editor and you'll get a list of the commands. These
  7495. >are the basic commands:
  7496. ..
  7497.  
  7498. How do you DRAG that osax to the Script Editor? What exactly do you do?
  7499.  
  7500. YL
  7501. =========================================================================
  7502. Date:         Wed, 9 Nov 1994 08:06:10 -0600
  7503. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7504. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7505. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  7506. Subject:      Re(2): Writing to a text file
  7507.  
  7508.  ------ From: Macintosh Scripting Systems, Wed, Nov 9, 1994 ------
  7509. > How do you DRAG that osax to the Script Editor?
  7510. > What exactly do you do?
  7511.  
  7512. Perhaps you should open it from within the Script Editor application.
  7513.  
  7514. 1) Double-click on the Script Editor application to open it.
  7515. 2) After it's opened (i.e., the menus have changed), Choose
  7516.    "Open Dictionary" from the File Menu. An open dialog should appear.
  7517. 3) Unless you're using AppleScript 1.0, a button will be at the bottom
  7518.    of the dialog saying "Go To Scripting Additions Folder" or some such.
  7519.    Click on it.
  7520. 4) Scroll down to the Read/Write Commands file and move your mouse over
  7521.    it. Click once.
  7522. 5) Click the open button with your mouse.
  7523.  
  7524. The dictionary should open, listing all the commands for that particularly
  7525. osax. This works for any file that shows up in the dialog while you are in
  7526. the script editor, including scriptable applications.
  7527.  
  7528. Dennis L. Whiteman
  7529. THE ULTIMATE FREELANCER
  7530. =========================================================================
  7531. Date:         Wed, 9 Nov 1994 07:58:15 -0700
  7532. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7533. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7534. From:         Brent Schneeman <snowman@RASSP.RASSP.MOT.COM>
  7535. Subject:      Setting file type and creator
  7536.  
  7537. I'm trying to write a script which modifies a file's type and creator code.
  7538. Specifically, I want to turn an un-typed file into an Excel file. I tried
  7539. this:
  7540.  
  7541. on run
  7542.         set FileName to (choose file)
  7543.         set type of file FileName to "XLS4"
  7544.         set Creator of file FileName to "XCEL"
  7545. end run
  7546.  
  7547. and got a "can't set type of file (blah blah blah) to 'XLS4'" error. I've
  7548. tried referring to FileName in many different ways (as text, as data, ...)
  7549. but still get errors. Please help me.
  7550.  
  7551. I'm using System 7.5 and AS1.1
  7552.  
  7553.  
  7554. --
  7555.                             |          \|/
  7556. Brent Schneeman             |  ___.oO___|_  (It's a snowman in the desert
  7557. snowman@rassp.rassp.mot.com |                next to a saguaro)
  7558.  
  7559. "He never cried crack until he brought him home as drunk as a boiled owl"
  7560.                                 -James Joyce
  7561. =========================================================================
  7562. Date:         Wed, 9 Nov 1994 11:38:31 -0600
  7563. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7564. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7565. From:         Steve Alex <steve_alex@AIDT.EDU>
  7566. Subject:      Re: Setting file type and creator
  7567.  
  7568. >I'm trying to write a script which modifies a file's type and creator code.
  7569. >Specifically, I want to turn an un-typed file into an Excel file. I tried
  7570. >this:
  7571. >
  7572. >on run
  7573. >        set FileName to (choose file)
  7574. >        set type of file FileName to "XLS4"
  7575. >        set Creator of file FileName to "XCEL"
  7576. >end run
  7577. >
  7578. >and got a "can't set type of file (blah blah blah) to 'XLS4'" error. I've
  7579. >tried referring to FileName in many different ways (as text, as data, ...)
  7580. >but still get errors. Please help me.
  7581. >
  7582. >I'm using System 7.5 and AS1.1
  7583.  
  7584.  
  7585. Close, but use the scriptable finder
  7586.  
  7587. tell application "Finder"
  7588.         set FileName to (choose file)
  7589.         set file type of FileName to "XLS4"
  7590.         set creator type of FileName to "XCEL"
  7591.  
  7592. end tell
  7593.  
  7594. Steve Alex                                 (steve_alex@aidt.edu)
  7595.  
  7596.       _/_/_/     _/   _/_/_/_/    _/_/_/_/  Alabama Industrial
  7597.    _/      _/   _/   _/      _/    _/       Development Training
  7598.   _/_/_/_/_/   _/   _/      _/    _/        75 TechnaCenter Dr.
  7599.  _/      _/   _/   _/      _/    _/         Montgomery AL, 36117
  7600. _/      _/   _/   _/_/_/_/      _/          (205) 242-2675
  7601. =========================================================================
  7602. Date:         Wed, 9 Nov 1994 09:39:51 U
  7603. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7604. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7605. From:         Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  7606. Subject:      Re- FileMaker Pro and Apple
  7607.  
  7608.                        Subject:                               Time:9:33
  7609.   OFFICE MEMO          Re: FileMaker Pro and AppleScript      Date:11/9/94
  7610. Maybe I missing something but can you use Try and On Error to test for error
  7611. conditions i.e.
  7612.  
  7613. tell application "FileMaker Pro"
  7614.         try
  7615.                 every Record whose Cell 1 = "testData"
  7616.         on error number errNum
  7617.                 if errNum = -1728 then  -- object not found
  7618.                         'do some stuff in here'
  7619.     else
  7620.       'do some other stuff'
  7621.                 end if
  7622.         end try
  7623. end tell
  7624.  
  7625. Regards
  7626. Stephen
  7627. =========================================================================
  7628. Date:         Wed, 9 Nov 1994 19:35:40 +0100
  7629. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7630. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7631. From:         WalrathW <walrathw@RFERL.ORG>
  7632. Subject:      Re: Setting file type and creator
  7633.  
  7634. > on run
  7635. >         set FileName to (choose file)
  7636. >         set type of file FileName to "XLS4"
  7637. >         set Creator of file FileName to "XCEL"
  7638. > end run
  7639.  
  7640. While I don't have extensive experience with scripting the Finder (nor do I
  7641. even have the finder scripting extension installed on my lowly IIci at home
  7642. here so I can't test this), I expect you need to direct the commands to the
  7643. Finder:
  7644.  
  7645. tell application "Finder"
  7646.         set creator type of file "American Fool:Desktop Folder:jim response" to
  7647. "ttxt"
  7648. end tell
  7649.  
  7650. At the moment you are telling AppleScript to set the creator type, a task for
  7651. which it knows nothing about unless there is an osax installed which would
  7652. receive the message. I also think you need to use "creator type" and "file
  7653. type" but I could very well be wrong.
  7654.  
  7655. -wayne
  7656. =========================================================================
  7657. Date:         Wed, 9 Nov 1994 11:04:08 -0800
  7658. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7659. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7660. From:         Kevin Purcell <kevinpu@ATM.COM>
  7661. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  7662.  
  7663. >BTW, I have System 7.5 and got an RSA key with it (went through the notary
  7664. >and all that). Can that key be used with PGP? It is certainly verified, and
  7665. >that should be worth more than other people's signature on the public key.
  7666.  
  7667. Not their different.
  7668.  
  7669. Verifying PGP keys is an intereting problem which will be solved with
  7670. keyservers watching public transactions (like newsgroup posts and mailing
  7671. list posts) and associating your key with your mailing address.
  7672.  
  7673. Kinda like building a credit record.
  7674.  
  7675. Kevin Purcell      Attachmate Corp        (206) 649-6489
  7676. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  7677. =========================================================================
  7678. Date:         Wed, 9 Nov 1994 11:19:33 -0800
  7679. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7680. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7681. From:         Kevin Purcell <kevinpu@ATM.COM>
  7682. Subject:      Re: PGP Scripts 1.0 (Eudora & PGP)
  7683.  
  7684. >>BTW, I have System 7.5 and got an RSA key with it (went through the notary
  7685. >>and all that). Can that key be used with PGP? It is certainly verified, and
  7686. >>that should be worth more than other people's signature on the public key.
  7687. >
  7688. >Hey, how did getting the RSA key go. It looked like a pain in the butt. Oh
  7689. >well, can you pass on any information you get....
  7690. >CW
  7691. >
  7692. >Carlin Edward Wiegner               e-mail: cew@leland.stanford.edu
  7693. >P.O. Box 9998                       www:  http://quark.stanford.edu
  7694. >Stanford, CA 94309
  7695.  
  7696. THe easiest way seems to be at WWDC. RSA were doing it for free (big lines
  7697. when I looked though).
  7698.  
  7699. If you can wait till next may!
  7700.  
  7701. Kevin Purcell      Attachmate Corp        (206) 649-6489
  7702. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  7703. =========================================================================
  7704. Date:         Wed, 9 Nov 1994 11:23:07 -0800
  7705. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7706. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7707. From:         Kevin Purcell <kevinpu@ATM.COM>
  7708. Subject:      Re: Write to a File
  7709.  
  7710. >And yes,
  7711. >   return return
  7712. >is a legal AppleScript statement, and manages to do what one would expect.
  7713. >And the formatting does help (if you set it up right), since the first
  7714. >return is formatted as a language keyword, and the second as an application
  7715. >keyword.
  7716.  
  7717.  
  7718. Anyone for an obfuscated AppleScript contest?
  7719.  
  7720. >
  7721. >Once again, I'm glad I didn't write that parser!  --John
  7722.  
  7723. I think with playing with AppleScript for some time (and watching some of
  7724. our developers fiddling with aete definitions) that the who trick behind
  7725. the AppleScript parser is:
  7726.  
  7727. 1. that its not context free (like most parsers except C++ or Algol 68)
  7728.  
  7729. 2. that it tried to grab the biggest chunk it can understand in one go.
  7730.  
  7731. Still it amazes me what it can cope with.
  7732.  
  7733. Who wrote it? Can anyone reveal anything about the methods or ideas behind
  7734. the parser? What are the difficulties in parsing an extensible language
  7735. like AppleScript?
  7736.  
  7737. Kevin Purcell      Attachmate Corp        (206) 649-6489
  7738. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  7739. =========================================================================
  7740. Date:         Wed, 9 Nov 1994 14:44:18 -0500
  7741. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7742. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7743. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  7744. Subject:      Re: Filemaker Pro & Applescript
  7745.  
  7746. >I'm running a script in conjunction with a MacHTTP server that allows WWW users
  7747. >to search a filemaker pro data base.  It works great except if they try and
  7748. >search for something that's not in the data base, then they get a cgi
  7749. >application error, and the script stays on (I like my scripts to quit after
  7750. >they're through - otherwise I get too many things going at once).  I'd like to
  7751. >return a meaningful statement when their search comes up with nothing.  The
  7752. >most
  7753. >promising suggestion I've gotten is displayed below - still gets a cgi
  7754. >application error.  I'm sure it doesn't like the if answer = "", but this works
  7755. >for checking to see if http_search_args are empty, so why won't it work for
  7756. >this?  And if that's not the way to do it, then how?  Any suggestions?
  7757. >
  7758. >-----------------------------------------------
  7759. >tell application "FileMaker Pro"
  7760. >                Open alias "Policy Dev 1:Desktop Folder:MacHTTP:fm_form"
  7761. >                Show (every Record of Window "fm_form" whose Cell 7 =
  7762. >your_name)
  7763. >                copy Field 8 of Window "fm_form" to answer
  7764. >                Quit Application "FileMaker Pro"
  7765. >        end tell
  7766. >        if answer = "" then
  7767. >                quit
  7768. >                return http_10_header & "<H1>Sorry</H1> That name is not in my
  7769. >l
  7770. > ist."
  7771. >        else
  7772. >                quit
  7773. >                return http_10_header & "<H1>Here is your list!</H1><hr> " &
  7774. >ans
  7775. > wer
  7776. >        end if
  7777. >------------------------------------------------
  7778. >
  7779. >Thanks for your time and consideration.
  7780. >
  7781. >Sincerely,
  7782.  
  7783.  
  7784. What I would recommend doing, if I understand your problem, is adding an on
  7785. error routine to trap when the is no data found (as it causes an error to
  7786. be returned):
  7787.  
  7788. try
  7789.  
  7790.   tell application "FileMaker Pro"
  7791.     Open alias "Policy Dev 1:Desktop Folder:MacHTTP:fm_form"
  7792.     Show every Record of Window "fm_form" whose Cell 7 = your_name)
  7793.     quit
  7794.     return http_10_header & "<H1>Here is your list!</H1><hr> " & answer
  7795.   end tell
  7796.  
  7797. on error
  7798.      tell application "Filemaker Pro" to quit
  7799.     return http_10_header & "<H1>Sorry</H1> That name is not in my list."
  7800. end try
  7801. .
  7802. .
  7803. .
  7804.  
  7805. Mark Hadfield
  7806. hadfield@sickkids.on.ca
  7807. The Hospital For Sick Children
  7808. =========================================================================
  7809. Date:         Wed, 9 Nov 1994 11:56:52 -0800
  7810. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7811. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7812. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  7813. Subject:      Re: Setting file type and creator
  7814.  
  7815. At 06:58 11/9/94, Brent Schneeman wrote:
  7816. >I'm trying to write a script which modifies a file's type and creator code.
  7817. >Specifically, I want to turn an un-typed file into an Excel file. I tried
  7818. >this:
  7819. >
  7820. >on run
  7821. >        set FileName to (choose file)
  7822. >        set type of file FileName to "XLS4"
  7823. >        set Creator of file FileName to "XCEL"
  7824. >end run
  7825. >
  7826. >and got a "can't set type of file (blah blah blah) to 'XLS4'" error. I've
  7827. >tried referring to FileName in many different ways (as text, as data, ...)
  7828. >but still get errors. Please help me.
  7829.  
  7830. In (Scriptable) Finder, files have the properties
  7831.    file type
  7832. and
  7833.    creator type
  7834.  
  7835. rather than type and Creator.
  7836.  
  7837. Try
  7838.  
  7839.     set FileName to (choose file)
  7840.     set file type of file FileName to "XLS4"
  7841.     set creator type of file FileName to "XCEL"
  7842.  
  7843. --John (who hasn't tried the above)
  7844.  
  7845. --
  7846. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  7847. =========================================================================
  7848. Date:         Thu, 10 Nov 1994 09:23:00 +1300
  7849. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7850. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7851. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  7852.               NZ" <LDO@WAIKATO.AC.NZ>
  7853. Subject:      Re: Graphic Scripting
  7854.  
  7855. >One question:  do your externals support PRINTING?  I think this would be
  7856. >an incredible addition...
  7857.  
  7858. Funny you should ask :-). Yes, I do indeed have another set of HyperCard
  7859. externals for doing direct Printing Manager calls. I had to work around some
  7860. interesting flakiness in getting them to function properly--did you know that
  7861. you have to set the current GrafPort to the printing port when you call
  7862. PrClosePage? I couldn't find this interesting fact documented anywhere.
  7863.  
  7864. I have successfully used them for printing custom reports for the person
  7865. who manages after-hours room bookings on campus--she's been using the stack
  7866. for several months now, with no problems reported. However, I recently tried
  7867. them out on a machine with QuickDraw GX installed, and got a crash. :-(
  7868.  
  7869. Of course, all this flakiness could be the consequence of some subtle
  7870. interaction with HyperCard's own use of the Printing Manager...
  7871.  
  7872. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7873. Computer Services Dept                     fax: +64-7-838-4066
  7874. University of Waikato            electric mail: ldo@waikato.ac.nz
  7875. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  7876. =========================================================================
  7877. Date:         Thu, 10 Nov 1994 09:34:00 +1300
  7878. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7879. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7880. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  7881.               NZ" <LDO@WAIKATO.AC.NZ>
  7882. Subject:      Re: Getting an RSA key (was Re: PGP Scripts 1.0)
  7883.  
  7884. "Robert W. Harder" <harder@ENGR.ORST.EDU> writes:
  7885.  
  7886. >>Hey, how did getting the RSA key go.
  7887.  
  7888. >You need three
  7889. >forms of ID, one or two of which must be photo ID. A credit card will
  7890. >suffice for the third. You print out a form from the digisign app which has
  7891. >"garbage" that means something to RSA.
  7892.  
  7893. I gather that's an encoded form of your application, using a code that is
  7894. easy for them to OCR reliably. They want it on paper, in preference to a disk,
  7895. to make sure they're covered legally.
  7896.  
  7897. By the way, the fee for all this is US$25, and that applies throughout the
  7898. entire world apart from California. (In California, you pay sales tax on top
  7899. of that.) Of course, I got my signer at the Apple World-Wide Developer
  7900. Conference in May, where they were giving them out for free...
  7901.  
  7902. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7903. Computer Services Dept                     fax: +64-7-838-4066
  7904. University of Waikato            electric mail: ldo@waikato.ac.nz
  7905. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  7906. =========================================================================
  7907. Date:         Wed, 9 Nov 1994 15:24:41 -0700
  7908. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7909. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7910. From:         Dennis Birch <dennisb@HALCYON.COM>
  7911. Subject:      AppleScripts controlling AppleScripts
  7912.  
  7913. I'm trying to make one AppleScript send commands to another AppleScript,
  7914. without success. To test the possibility of doing this, I have created two
  7915. AppleScript applications, Master and Slave.
  7916.  
  7917. Master's script:
  7918.  
  7919. tell application "Slave"
  7920.         run
  7921.         doOrder("This is a test.")
  7922. end tell
  7923.  
  7924.  
  7925. Slave's script:
  7926.  
  7927. on doOrder(theText)
  7928.         display dialog theText
  7929. end doOrder
  7930.  
  7931.  
  7932. When I run Master, it apparently activates Slave, but all I get is a
  7933. spinning ball cursor and, eventually, a timeout error from Slave. If I
  7934. leave the "run" command out of Master's script or replace "run" with an
  7935. "activate" command, it does not appear to activate Slave.
  7936.  
  7937. Am I trying to do something that AppleScript can't do, or am I just going
  7938. about it wrong?
  7939.  
  7940. -----------------------------------------------------------------------------
  7941. Dennis Birch
  7942.  
  7943. E-mail: dennisb@halcyon.com
  7944.  
  7945. Floathe Johnson
  7946. High-Technology Advertising and Public Relations
  7947. Home Page: http://www.floathe.com/
  7948. =========================================================================
  7949. Date:         Wed, 9 Nov 1994 17:56:41 -0600
  7950. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7951. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7952. From:         Igor Livshits <igorl@UIUC.EDU>
  7953. Subject:      Multiple source files?
  7954.  
  7955. Howdy,
  7956.  
  7957. Coming from a tradition of small and concise C source files, I'd like to
  7958. use multiple source files for my compiled scripts and applications. Is
  7959. there a way I may do this with the standard AS package?
  7960.  
  7961. Thanks!
  7962. Igor
  7963.  
  7964. _____
  7965. NCSA-UIUC, e: igorl@uiuc.edu, w: (217) 244-0424;  Have a Coke and a smile :)
  7966. =========================================================================
  7967. Date:         Thu, 10 Nov 1994 13:10:00 +1300
  7968. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7969. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7970. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  7971.               NZ" <LDO@WAIKATO.AC.NZ>
  7972. Subject:      Re: Getting an RSA key  (was Re: PGP Scripts 1.0)
  7973.  
  7974. Kevin Purcell <kevinpu@ATM.COM> writes:
  7975.  
  7976. >Verifying PGP keys is an intereting problem which will be solved with
  7977. >keyservers watching public transactions (like newsgroup posts and mailing
  7978. >list posts) and associating your key with your mailing address.
  7979.  
  7980. The RSA approach is to have your signer signed with RSA's own private key
  7981. when it is issued. The corresponding public key is built into every copy of
  7982. PowerTalk.
  7983.  
  7984. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  7985. Computer Services Dept                     fax: +64-7-838-4066
  7986. University of Waikato            electric mail: ldo@waikato.ac.nz
  7987. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  7988. =========================================================================
  7989. Date:         Wed, 9 Nov 1994 17:19:07 -0800
  7990. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7991. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  7992. From:         Christopher Allen <ChristopherA@CONSENSUS.COM>
  7993. Organization: Consensus Development Corporation, San Francisco, CA USA
  7994. Subject:      Re: Getting an RSA key (was Re: PGP Scripts 1.0)
  7995.  
  7996. At 12:34 PM 11/9/94, "Lawrence D'Oliveiro, Waikato University, Hamilton, wrote:
  7997. >By the way, the fee for all this is US$25, and that applies throughout the
  7998. >entire world apart from California. (In California, you pay sales tax on top
  7999. >of that.) Of course, I got my signer at the Apple World-Wide Developer
  8000. >Conference in May, where they were giving them out for free...
  8001.  
  8002. If you ever purchased 7.1 Pro, or System 7.5 in the US you should have
  8003. received a coupon in the box for a free signer from RSA. The difficulty
  8004. right now, as I understand it, is that not all international versions have
  8005. a coupon.
  8006.  
  8007. Also, rumor has it that if you are going to be at MacWorld SF in January
  8008. there may be another opportunity to "walk up" with your IDs in hand and get
  8009. a signer. I'm sure Apple and RSA will let you all know more as plans
  8010. progress.
  8011.  
  8012. ------------------------------------------------------------------------
  8013. ..Christopher Allen                  Consensus Development Corporation..
  8014. ..<ChristopherA@consensus.com>                   4104-24th Street #419..
  8015. ..                                        San Francisco, CA 94114-3615..
  8016. ..                                        o415/647-6383  f415/647-6384..
  8017. ..Mosaic/WWW Home Page:                                               ..
  8018. ..<A HREF="http://www.consensus.com:8300/">Consensus Home Page</A>    ..
  8019. =========================================================================
  8020. Date:         Wed, 9 Nov 1994 17:31:11 -0600
  8021. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8022. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8023. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  8024. Subject:      Re: Sys 7.5 Launcher, Windowshade
  8025.  
  8026. > I want WindowShade to do it's thing on a
  8027. > certain window.
  8028.  
  8029. > Tell Application "WindowShade"
  8030. >   Shrink Window "XXX"
  8031. > End Tell
  8032.  
  8033. So, did anyone figure this out. I've decided having a few windows (System
  8034. Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
  8035. shrunk down is a good thing. However, when I reboot, I have to go through and
  8036. manually shrink each one. Unfortunately, it appears that since WindowShade is
  8037. a control panel scripting this may not be possible. Maybe I'll look at a
  8038. QuicKeys solution. Can I tell QuicKeys to double-click some place?
  8039.  
  8040. Dennis L. Whiteman
  8041. THE ULTIMATE FREELANCER
  8042. =========================================================================
  8043. Date:         Wed, 9 Nov 1994 18:33:06 -0800
  8044. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8045. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8046. From:         Kevin Purcell <kevinpu@ATM.COM>
  8047. Subject:      Re: Sys 7.5 Launcher, Windowshade
  8048.  
  8049. >> I want WindowShade to do it's thing on a
  8050. >> certain window.
  8051. >
  8052. >> Tell Application "WindowShade"
  8053. >>   Shrink Window "XXX"
  8054. >> End Tell
  8055. >
  8056. >So, did anyone figure this out. I've decided having a few windows (System
  8057. >Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
  8058. >shrunk down is a good thing. However, when I reboot, I have to go through and
  8059. >manually shrink each one. Unfortunately, it appears that since WindowShade is
  8060. >a control panel scripting this may not be possible. Maybe I'll look at a
  8061. >QuicKeys solution. Can I tell QuicKeys to double-click some place?
  8062.  
  8063.  
  8064. Its a control panel scripting this is not possible. You cannot script a
  8065. control panel (except for those control panels that aren;t really control
  8066. panels or those that finder takes under its wing and does evil things at a
  8067. low-level.
  8068.  
  8069. You certainly could use QuickKeys to click things.
  8070.  
  8071. Just another part of the highly integrated "shareware" OS. Were do I send
  8072. my $10?
  8073.  
  8074. Kevin Purcell      Attachmate Corp        (206) 649-6489
  8075. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  8076. =========================================================================
  8077. Date:         Wed, 9 Nov 1994 18:39:19 -0800
  8078. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8079. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8080. From:         Kevin Purcell <kevinpu@ATM.COM>
  8081. Subject:      Re: Getting an RSA key  (was Re: PGP Scripts 1.0)
  8082.  
  8083. >Kevin Purcell <kevinpu@ATM.COM> writes:
  8084. >
  8085. >>Verifying PGP keys is an intereting problem which will be solved with
  8086. >>keyservers watching public transactions (like newsgroup posts and mailing
  8087. >>list posts) and associating your key with your mailing address.
  8088. >
  8089. >The RSA approach is to have your signer signed with RSA's own private key
  8090. >when it is issued. The corresponding public key is built into every copy of
  8091. >PowerTalk.
  8092.  
  8093. The centralized approach versus the delocalised approach.
  8094.  
  8095. RSA are a trusted party in this transaction.
  8096.  
  8097. The other approach avoids a trusted party but gives some hope of verifying
  8098. the person says who they are.
  8099.  
  8100. THe whole issue of protocols for crypto is almost as intersting as the
  8101. crypto alogorithms themselves -- they are often the weakset parts too.
  8102.  
  8103. Kevin Purcell      Attachmate Corp        (206) 649-6489
  8104. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  8105. =========================================================================
  8106. Date:         Wed, 9 Nov 1994 22:13:17 -0600
  8107. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8108. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8109. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8110. Subject:      Re: Sys 7.5 Launcher, Windowshade
  8111. In-Reply-To:  Your message of "Wed, 09 Nov 94 17:31:11 CST"
  8112.  
  8113. Dennis asks...
  8114.  
  8115. > > I want WindowShade to do it's thing on a
  8116. > > certain window.
  8117. >
  8118. > > Tell Application "WindowShade"
  8119. > >   Shrink Window "XXX"
  8120. > > End Tell
  8121. >
  8122. > So, did anyone figure this out. I've decided having a few windows (System
  8123. > Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
  8124. > shrunk down is a good thing. However, when I reboot, I have to go through and
  8125. > manually shrink each one. Unfortunately, it appears that since WindowShade is
  8126. > a control panel scripting this may not be possible. Maybe I'll look at a
  8127. > QuicKeys solution. Can I tell QuicKeys to double-click some place?
  8128.  
  8129. Yes, you can tell QuicKeys to click in specific places. Let's see if I can
  8130. remember this stuff without my Mac. You'll want to set up a long enough wait
  8131. for the Finder to start up or you could probably kick the quickey off with
  8132. AppleScript. You'll need to make the double-click occur on the frontmost
  8133. window, and then you'll need to cycle the windows to bring the next one to the
  8134. front for its double-click. If you keep the same number of windows open, you
  8135. could wrap these steps in a repeat. Shouldn't be too hard (he says, smirking).
  8136.  
  8137. pf
  8138. =========================================================================
  8139. Date:         Wed, 9 Nov 1994 23:36:42 -0600
  8140. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8141. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8142. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  8143. Subject:      Re(2): Sys 7.5 Launcher, Windowshade
  8144.  
  8145. >Shouldn't be too hard (he says, smirking).
  8146.  
  8147. It looked easy when I started out and I did get it done, but it took over an
  8148. hour to figure out the best way. For the benefit of anyone else who might be
  8149. considering this: BLOW OFF USING APPLESCRIPT TO DO ANYTHING OTHER THAN LAUNCH
  8150. THE QUICKEY. I started out with the windows in my Startup items folder so
  8151. they would always open. Then, I set up QuicKeys to simply double-click on
  8152. each window. Since they're overlapping, QuicKeys timed out.
  8153.  
  8154. Then I had AppleScript open each item, execute a QuicKey for each one, and go
  8155. to the next one, etc. None of the QuicKeys got done again because they timed
  8156. out. Plus I had the additional problem that the PowerTalk catalogs are really
  8157. folders so for some reason they behaved differently than regular folders.
  8158. Ultimately, I settled on one QuicKey sequence that opens the folder/catalog,
  8159. waits 'til it appears, double clicks on it, etc. If I add more windows, I
  8160. have to add more steps. Oh, I do have a line at the end of my startup script
  8161. that executes this QuicKey.
  8162.  
  8163. Dennis L. Whiteman
  8164. THE ULTIMATE FREELANCER
  8165. =========================================================================
  8166. Date:         Thu, 10 Nov 1994 17:53:51 +1100
  8167. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8168. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8169. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  8170. Subject:      Re: Multiple source files?
  8171. In-Reply-To:  <199411100346.OAA22153@ariel.ucs.unimelb.EDU.AU> from "Igor
  8172.               Livshits" at Nov 9, 94 05:56:41 pm
  8173.  
  8174. > Coming from a tradition of small and concise C source files, I'd like to
  8175. > use multiple source files for my compiled scripts and applications. Is
  8176. > there a way I may do this with the standard AS package?
  8177. >
  8178. Yes. Have a look at the chapter on script objects in the AppleScript
  8179. Language Reference.
  8180.  
  8181. Basically, you just save a script with a few handlers in it, and load it as
  8182. a script object in your calling routine (myScript = load script "Foo").
  8183. Then refer to the handler in any of the normal ways (Foo's bar, tell Foo to
  8184. bar, bar of Foo...)
  8185.  
  8186. Hope this helps,
  8187.  
  8188.  
  8189. /==============================\
  8190. | Jeremy P. Howard              |       "Logic must take care of itself."
  8191. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  8192. \==============================/         Tractatus Logico-Philisophicus
  8193. =========================================================================
  8194. Date:         Thu, 10 Nov 1994 17:56:53 +1100
  8195. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8196. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8197. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  8198. Subject:      Re: AppleScripts controlling AppleScripts
  8199. In-Reply-To:  <199411100225.NAA08934@ariel.ucs.unimelb.EDU.AU> from "Dennis
  8200.               Birch" at Nov 9, 94 03:24:41 pm
  8201.  
  8202. >
  8203. > I'm trying to make one AppleScript send commands to another AppleScript,
  8204. > without success. To test the possibility of doing this, I have created two
  8205. > AppleScript applications, Master and Slave.
  8206. >
  8207. > Master's script:
  8208. >
  8209. > tell application "Slave"
  8210. >         run
  8211. >         doOrder("This is a test.")
  8212. > end tell
  8213. >
  8214. >
  8215. > Slave's script:
  8216. >
  8217. > on doOrder(theText)
  8218. >         display dialog theText
  8219. > end doOrder
  8220. >
  8221. >
  8222. > When I run Master, it apparently activates Slave, but all I get is a
  8223. > spinning ball cursor and, eventually, a timeout error from Slave. If I
  8224. > leave the "run" command out of Master's script or replace "run" with an
  8225. > "activate" command, it does not appear to activate Slave.
  8226. >
  8227. Slave must be saved as 'stay-open'. It doesn't need a run command, but you
  8228. do have to have it running to use it (open it with the Scriptable Finder,
  8229. eg). Other than that, this should be fine.
  8230.  
  8231. Hope this helps,
  8232.  
  8233.  
  8234. /==============================\
  8235. | Jeremy P. Howard              |       "Logic must take care of itself."
  8236. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  8237. \==============================/         Tractatus Logico-Philisophicus
  8238. =========================================================================
  8239. Date:         Thu, 10 Nov 1994 14:08:36 +0100
  8240. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8241. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8242. From:         Dario Lopez =?iso-8859-1?Q?K=E4sten?= <cl2dlope@CLING.GU.SE>
  8243. Subject:      AS Complexity
  8244.  
  8245. >Date:    Wed, 9 Nov 1994 11:23:07 -0800
  8246. >From:    Kevin Purcell <kevinpu@ATM.COM>
  8247. >Subject: Re: Write to a File
  8248. >
  8249.  
  8250. [reply-stuff deleted]
  8251.  
  8252. >
  8253. >I think with playing with AppleScript for some time (and watching some of
  8254. >our developers fiddling with aete definitions) that the who trick behind
  8255. >the AppleScript parser is:
  8256. >
  8257. >1. that its not context free (like most parsers except C++ or Algol 68)
  8258. >
  8259. >2. that it tried to grab the biggest chunk it can understand in one go.
  8260. >
  8261. >Still it amazes me what it can cope with.
  8262. >
  8263. >Who wrote it? Can anyone reveal anything about the methods or ideas behind
  8264. >the parser? What are the difficulties in parsing an extensible language
  8265. >like AppleScript?
  8266. >
  8267. >Kevin Purcell      Attachmate Corp        (206) 649-6489
  8268. >kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  8269. >
  8270.  
  8271. Does anyone know what kind of expressive power the AS language has compared
  8272. to other programming languages?
  8273.  
  8274. /dario
  8275.  
  8276.  
  8277. ____________________________________________________________________________=
  8278. __
  8279. Dario Lopez K=E4sten                    |   Student of Computational Linguis=
  8280. tics
  8281. cl2dlope@hal.cling.gu.se              |   G=F6teborg University, SWEDEN
  8282. Send e-mail to my son,                |   [ Macintosh Systems Consultant ]
  8283. Put "To Felix" in the subject field   |   [ & Part time 4D/Mac Developer ]
  8284. ____________________________________________________________________________=
  8285. __
  8286. =========================================================================
  8287. Date:         Thu, 10 Nov 1994 09:02:34 -0500
  8288. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8289. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8290. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  8291. Subject:      Re: AppleScripts controlling AppleScripts
  8292.  
  8293. >>
  8294. >> I'm trying to make one AppleScript send commands to another AppleScript,
  8295. >> without success. To test the possibility of doing this, I have created two
  8296. >> AppleScript applications, Master and Slave.
  8297. >>
  8298. >> Master's script:
  8299. >>
  8300. >> tell application "Slave"
  8301. >>         run
  8302. >>         doOrder("This is a test.")
  8303. >> end tell
  8304. >>
  8305. >>
  8306. >> Slave's script:
  8307. >>
  8308. >> on doOrder(theText)
  8309. >>         display dialog theText
  8310. >> end doOrder
  8311. >>
  8312. >>
  8313. >> When I run Master, it apparently activates Slave, but all I get is a
  8314. >> spinning ball cursor and, eventually, a timeout error from Slave. If I
  8315. >> leave the "run" command out of Master's script or replace "run" with an
  8316. >> "activate" command, it does not appear to activate Slave.
  8317.  
  8318.  Jeremy P. Howard responded:
  8319. >Slave must be saved as 'stay-open'. It doesn't need a run command, but you
  8320. >do have to have it running to use it (open it with the Scriptable Finder,
  8321. >eg). Other than that, this should be fine.
  8322.  
  8323. Jeremy is right with one small addendum:  you do not have to have it
  8324. running to for it to work.  As long as the slave applet is saved as
  8325. 'stay-open'  when you issue it a command it will launch and then perform
  8326. the command.  No need to launch it from the scriptable finder.  Now if the
  8327. slave applet was on a different Mac on the network it would need to be
  8328. running to receive the command...
  8329.  
  8330. Mark Hadfield
  8331. hadfield@sickkids.on.ca
  8332. The Hospital For Sick Children
  8333. =========================================================================
  8334. Date:         Thu, 10 Nov 1994 23:22:55 +0800
  8335. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8336. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8337. From:         Todd Hooper <todd@PERTH.DIALIX.OZ.AU>
  8338. Subject:      Filemaker - repeating fields
  8339. In-Reply-To:  <199411100605.OAA26900@gecko.DIALix.oz.au> from "Automatic digest
  8340.               processor" at Nov 10, 94 00:01:32 am
  8341.  
  8342. I have a FileMaker database with repeating fields in it e.g. the
  8343. record stores a name and other details, plus a date and notes field
  8344. which can repeat up to ten times.
  8345.  
  8346. What AppleScript do I use to access instantiation 'n' of the repeating
  8347. fields? I have tried a few variations with no luck. The example scripts
  8348. for FileMaker don't appear to have any references to repeating fields.
  8349.  
  8350. I know I have seen this one before but I can't remember it for the
  8351. life of me!
  8352.  
  8353. Thanks,
  8354.  
  8355. Todd
  8356. =========================================================================
  8357. Date:         Thu, 10 Nov 1994 09:16:11 PST
  8358. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8359. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8360. From:         David Jokinen <GroundZero@EWORLD.COM>
  8361. Subject:      Re: AppleScripts controlling AppleScripts
  8362.  
  8363. > I'm trying to make one AppleScript send commands to another AppleScript,
  8364. > without success. To test the possibility of doing this, I have created two
  8365. > AppleScript applications, Master and Slave.
  8366. >
  8367. > Master's script:
  8368. >
  8369. > tell application "Slave"
  8370. >         run
  8371. >         doOrder("This is a test.")
  8372. > end tell
  8373. >
  8374. >
  8375. > Slave's script:
  8376. >
  8377. > on doOrder(theText)
  8378. >         display dialog theText
  8379. > end doOrder
  8380. >
  8381. > When I run Master, it apparently activates Slave, but all I get is a
  8382. > spinning ball cursor and, eventually, a timeout error from Slave. If I
  8383. > leave the "run" command out of Master's script or replace "run" with an
  8384. > "activate" command, it does not appear to activate Slave.
  8385.  
  8386. You have three alternatives:
  8387.  
  8388. 1. Send the commands directly to a stay-open script application. The script
  8389. application must be present at run time. If you change it, you don't need to
  8390. recompile its clients.
  8391.  
  8392. Server
  8393. =====
  8394. on foo(aParameter)
  8395.  return aParameter
  8396. end foo
  8397.  
  8398. on bar(aParameter)
  8399.  return reverse of characters of aParameter as string
  8400. end bar
  8401.  
  8402. Client
  8403. =====
  8404. tell application "FooBar"
  8405.     display dialog foo("foo")
  8406.     display dialog bar("bar")
  8407.     display dialog bad("bad")
  8408. end tell
  8409.  
  8410. 2. Add a command record parameter to the "run" handler in a stay-open script
  8411. application, and use that parameter to create a dispatch table. The script
  8412. application must be present at run time. If you change it, you don't need to
  8413. recompile its clients.
  8414.  
  8415. Server (cont...)
  8416. ============
  8417. on run aCmdRec
  8418.  if command of aCmdRec is "foo" then
  8419.   return foo(parameter of aCmdRec)
  8420.  else if command of aCmdRec is "bar" then
  8421.   return bar(parameter of aCmdRec)
  8422.  else
  8423.   error "Unknown command: " & command of aCmdRec
  8424.  end if
  8425. end run
  8426.  
  8427. Client
  8428. =====
  8429. tell application "FooBar"
  8430.  set theCmdRec to {command:"foo", parameter:"foo"}
  8431.  display dialog (run theCmdRec)
  8432.  set theCmdRec to {command:"bar", parameter:"bar"}
  8433.  display dialog (run theCmdRec)
  8434.  set theCmdRec to {command:"bad", parameter:"bad"}
  8435.  display dialog (run theCmdRec)
  8436. end tell
  8437.  
  8438. 3. Load the script into a property, then "tell" the property what to do. The
  8439. advantage of this technique is that the FooBar script doesn't need to be
  8440. present at run time. It is completely encapsulated within the property at
  8441. compile time. If you change the encapsulated script, remember to recompile
  8442. all its clients.
  8443.  
  8444. Client
  8445. =====
  8446. property FooBar: load script alias "MacintoshHD:FooBar"
  8447.  
  8448. tell FooBar
  8449.     display dialog foo("foo")
  8450.     display dialog bar("bar")
  8451.     display dialog bad("bad")
  8452. end tell
  8453.  
  8454. Happy scripting!
  8455.  
  8456. David Jokinen
  8457. Ground Zero Software
  8458. ((GroundZero@eworld.com))
  8459. =========================================================================
  8460. Date:         Thu, 10 Nov 1994 09:16:02 PST
  8461. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8462. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8463. From:         David Jokinen <GroundZero@EWORLD.COM>
  8464. Subject:      Re: Sys 7.5 Launcher, Windowshade
  8465.  
  8466. >BLOW OFF USING APPLESCRIPT TO DO ANYTHING OTHER
  8467. >THAN LAUNCH THE QUICKEY
  8468.  
  8469. I had been trying for months to integrate AppleScript with QuicKeys, with
  8470. lousy results. There are three basic problems:
  8471.  
  8472. 1. QuicKeys Toolbox doesn't work as advertised via AppleScript.
  8473. 2. QuicKeys Script is the worst scripting language ever devised.
  8474. 3. Integration between AppleScript and QuicKeys Script is hopeless.
  8475.  
  8476. Then I saw the light: PreFab Player. Now my AppleScripts know no limits. If
  8477. you script, you need ths tool. It's that simple.
  8478.  
  8479. David Jokinen
  8480. Ground Zero Software
  8481. ((GroundZero@eworld.com))
  8482. ***************************************************************
  8483. For Immediate Release
  8484.  
  8485. Scripting breakthrough: control any application today.
  8486.  
  8487. Somerville, MA  --  August 30, 1994  --  PreFab Software, Inc. is now
  8488. shipping PreFab Player (tm), a breakthrough product for script writers.
  8489.  Player is a faceless background application (similar to a system extension)
  8490. that makes all applications, desk accessories and control panels scriptable.
  8491.  Like a player piano, Player mimics user input, choosing from menus and
  8492. pop-ups, selecting items in dialog boxes and typing into documents.  Player
  8493. can also query the user interface, extracting the name of the frontmost
  8494. window, the state of a checkbox, or even the text of an error message.
  8495.     "Applications that were once impractical to script are now very
  8496. scriptable with Player."
  8497.        Eugene Barnes, Macintosh Tech. Support & Publishing Specialist, Allen
  8498. Press, Inc.
  8499.  
  8500. Player was developed by script writers for script writers.  It adds verbs
  8501. directly to UserLand Frontier (tm) and AppleScript (tm).  There is no need to
  8502. switch back and forth between the familiar scripting environment and an
  8503. external keyboard macro program.
  8504.     "I tried to call Tempo from Frontier, but it was a nightmare.  Player is
  8505. exactly what I needed."
  8506.         James C. Schell, Assistant to the President, The Type Connection
  8507.  
  8508. There is no separate macro language to learn; the full power of the scripting
  8509. language and development environment is available at every step.
  8510.     "Player works like a charm.  I still don't think I could use a Mac
  8511. without QuicKeys, but for scripting, QuicKeys is out."
  8512.         Joe Sewell, founder, SoftCrafters
  8513.  
  8514. Player includes special balloon help to identify user interface objects,
  8515. complete documentation for the script writer, free technical support by
  8516. e-mail and FAX, and a 60-day money-back guarantee.  Player retails for $95,
  8517. and includes a single license for Player Runtime (tm).
  8518.  
  8519. Player Runtime is an inexpensive utility for running scripts that "play" the
  8520. user interface: $25 for one, $20 each for 10 or more.
  8521.  
  8522. "Script writers have been waiting a long time for a utility like Player."
  8523.     Doug Baron, co-author, UserLand Frontier
  8524. "An important addition to your scripting arsenal."
  8525.     Donald Olson (The OSAX guy), Apple Computer, Inc.
  8526. * * *
  8527. Frontier and AppleScript are very different, and Player has distinct features
  8528. that were fine-tuned for each.  Player adds a custom menu to Frontier that
  8529. gives access to:
  8530.     - on-line help text &  DocServer verb reference
  8531.     - verbs that outline an application's menus or all items in a dialog
  8532.     - submenus that list all Player verbs; select one to insert the verb and
  8533. its parameters into the frontmost script window.
  8534.  
  8535. Player's AppleScript verbs were specifically designed to fit the object model
  8536. philosophy, a small set of verbs applied to standard objects.
  8537.     "The AppleScript command set is very intuitive ... much easier than many
  8538. scriptable applications."
  8539.         Doug Handy, Information Services, Mystic Seaport Museum
  8540.  
  8541. Scripting has opened up a whole new world of possibilities on the Macintosh.
  8542.  By themselves, system-level scripting products can only control applications
  8543. that have been enhanced with sufficient Apple event support.  Only a few
  8544. applications have added rich Apple event support, and none provides access to
  8545. every feature that is available from the user interface.  Player fills that
  8546. critical gap.
  8547.  
  8548. "Player totally rocks!  With Player running in conjunction with Frontier,
  8549. there is no automation task that can't be handled.  You have a complete
  8550. scripting language at your fingertips, and the power of Player extends that
  8551. out to intimately control other applications.  Multiple applications can be
  8552. seamlessly sewn together to automatically handle complex tasks.  We used
  8553. Player in CenterStagex, our speaker support software product for corporate
  8554. boardrooms.  Player lets us automate Photoshop to acquire, anti-alias, index,
  8555. rename and relocate whole slews of PICT files for corporate presentation
  8556. databases."
  8557.     Chris Perkins, Senior Developer, Media Lab, Inc.
  8558.  
  8559. "I use AppleScript to automate many of the repetitive administrative
  8560. functions involved with my job so that I can make more time for my internal
  8561. customers and for large projects.  Player is the best bridge that I have seen
  8562. between AppleScript and non-scriptable applications.  It has already saved me
  8563. countless hours and the monotony of many repetitive tasks!"
  8564.     Graham Breeze, Desktop Support, Raynet Corp.
  8565. ***************************************************************
  8566. PreFab Player
  8567. Data Sheet
  8568.  
  8569. The features you need
  8570.  
  8571. menus
  8572.     - choose commands from pull-down menus, including hierarchical menus
  8573.     - ... by name, partial name or position number
  8574.     - ... optional holding one or more modifier keys
  8575.     - choose from pop-up menus
  8576.  
  8577. dialogs
  8578.     - click buttons, select radio button options
  8579.     - check, uncheck or toggle checkboxes
  8580.     - click unnamed objects (e.g. iconic buttons) by unique ID
  8581.     - navigate file open & save dialogs
  8582.  
  8583. keyboard
  8584.     - type text
  8585.     - enter command/shift/option/control key combinations
  8586.     - hit function keys, arrows, and other special keys
  8587.  
  8588. mouse
  8589.     - click (usually relative to the frontmost window or dialog)
  8590.     - drag ... including through an entire sequence of locations
  8591.  
  8592. query
  8593.     - determine if a menu, dialog item or window exists
  8594.     - get the name and attributes of menus and windows
  8595.     - find the name, value or contents of dialog items
  8596.  
  8597. balloon help
  8598.     - shows the name, ID, type & XY location of any user interface object
  8599.  
  8600.  
  8601. For the scripting language of your choice
  8602.  
  8603. Frontier's UserTalk:
  8604.     with Player
  8605.         chooseMenu("File", "Page Setup")
  8606.         selectRadio("US Legal")
  8607.         acceptDialog()
  8608.  
  8609.     with Player, keys, modifiers
  8610.         typeCombination(cmd, "s")
  8611.         choosePopup("Format", "MacWrite")
  8612.         typeText(rightArrow + ".MWP")
  8613.         clickButton("Save")
  8614.  
  8615. AppleScript:
  8616.     tell application "PreFab Player"
  8617.         do menu menu item "Page Setup" of menu "File"
  8618.         click radio button "US Legal"
  8619.         type enter
  8620.     end tell
  8621.  
  8622.     tell application "PreFab Player"
  8623.         type "s" holding command
  8624.         do menu popup item "MacWrite" of menu "Format"
  8625.         type {right arrow, ".MWP"}
  8626.         click button "Save"
  8627.     end tell
  8628. ***************************************************************
  8629. Player vs. QuicKeys or Tempo: Different products for different applications
  8630. Aug. 30, 1994 by PreFab Software, Inc.
  8631.  
  8632. PreFab Player (tm) is an add-on to Frontier or AppleScript.  Player gives
  8633. script writers control of the Macintosh user interface.  In contrast,
  8634. keyboard macro products such as QuicKeys (tm) by CE Software and Tempo (tm)
  8635. by Affinity Microsystems are stand-alone programs aimed at non-scripters.
  8636.  
  8637. While it is possible to call a macro program from a script, it can be awkward
  8638. and tedious.  Every little change requires switching to the macro utility,
  8639. locating the right macro, navigating a series of nested dialogs to make the
  8640. necessary corrections, and finally returning to Frontier or AppleScript.
  8641.  With Player, just type a simple verb.  Scripts can mix Apple event based
  8642. verbs with verbs that "play" the user interface.  Create, edit and debug
  8643. scripts without leaving your familiar scripting environment.
  8644.  
  8645. Over time, QuicKeys and Tempo have each added "programming" constructs for
  8646. looping, branching, and conditional execution.  CE Software also added
  8647. QuicKeys Script, their own special-purpose OSA-compliant language.  None of
  8648. these attempts comes close to matching the simplicity and power of the
  8649. system-level scripting languages, whether the friendly version of traditional
  8650. constructs in Frontier's UserTalk, or the English-like syntax of AppleScript.
  8651.  Player adds to these languages rather than attempting to duplicate their
  8652. functionality.
  8653.  
  8654. Many scripts are written for use by others, whether clients, customers,
  8655. network users, or just friends and colleagues.  Neither QuicKeys nor Tempo
  8656. offers a simple, automatic way to install a new or updated macro on someone
  8657. else's machine.  For the script writer, Player couldn't be simpler: just
  8658. ensure that Player or Player Runtime is correctly installed in the Extensions
  8659. folder.  There are no separate macros to worry about, everything is in the
  8660. AppleScript or Frontier script file.
  8661.  
  8662. * * *
  8663. Player does not completely replace QuicKeys or Tempo.  These keyboard macro
  8664. products allow the user to create keyboard shortcuts for user actions.
  8665.  Player does not.  (Of the many ways to initiate a Frontier script or
  8666. AppleScript, both Menu Sharing and OSA Menu support custom command-keys.)
  8667.  QuicKeys and Tempo both include a collection of special-purpose extensions
  8668. for such tasks as interacting with the clipboard, bypassing the chooser,
  8669. dialing the telephone, etc.  Player's sole purpose is to "play" the user
  8670. interface.  (Many of these features are available as Frontier-callable UCMDs
  8671. or XCMDs, or AppleScript OSAX extensions.)
  8672.  
  8673. The current version of Player is not recordable.  As of this writing, very
  8674. few scriptable applications are recordable, so most script writers are
  8675. accustomed to typing the verbs and parameters.
  8676.  
  8677.  
  8678. Summary
  8679.  
  8680. QuicKeys and Tempo: unique features
  8681.  - record user actions
  8682.  - define custom keyboard shortcuts
  8683.  - extensions for bypassing control panels, etc.
  8684.  
  8685. Player: unique features
  8686.  - adds verbs to Frontier or AppleScript
  8687.  - special balloon help to identify user interface objects
  8688.  - documentation and tech support aimed at script writers
  8689.  
  8690. Player: benefits
  8691.  - completely integrated into your scripting environment
  8692.  - much easier to install new and updated scripts on other machines
  8693.  - inexpensive runtime version
  8694.  - smaller footprint (200K of RAM)
  8695.  
  8696.  
  8697. What our customers say
  8698. "Player works like a charm.  I still don't think I could use a Mac without
  8699. QuicKeys, but for scripting, QuicKeys is out."
  8700.  Joe Sewell, founder, SoftCrafters
  8701.  
  8702. "I used to use QuicKeys together with Frontier to control non-scriptable
  8703. applications.  It was awkward, clumsy, often unreliable, but it was all I
  8704. had.  With Player, I control the user interface of non-scriptable apps from
  8705. within Frontier.  No additional application to run; no external macros to
  8706. complicate debugging and installation.  Everything is done with one scripting
  8707. language making it clean, uncluttered, and much more reliable."
  8708.  Eugene Barnes, Macintosh Tech Support & Publishing Specialist, Allen Press,
  8709. Inc.
  8710.  
  8711. "I tried to call Tempo from Frontier, but it was a nightmare.  Player is
  8712. exactly what I needed."
  8713.  James C. Schell, Assistant to the President, The Type Connection
  8714.  
  8715. "While I continue to use Tempo for my own, day-to-day shortcuts, I have found
  8716. Player to be better for automating unattended systems.  Since I can control
  8717. non-scriptable applications with Player using only Frontier's UserTalk
  8718. language, my scripts are simpler, more reliable and maintainable, and easier
  8719. to document.  I can develop scripts for new tasks more quickly, too."
  8720.  Computing Support Manager, large aerospace firm
  8721. ***************************************************************
  8722. PreFab Software, Inc. was founded to meet the emerging demand for
  8723. scripting tools, automation utilities and "pre-fabricated software
  8724. components".
  8725.  
  8726. PreFab Player, Player Runtime, and PreFab Software are trademarks of PreFab
  8727. Software, Inc.
  8728. All other product and company names are trademarks or registered trademarks
  8729. of their respective holders.
  8730.  
  8731. This document is intended to be honest and informative.  Please bring any
  8732. errors, omissions, or suggestions to our attention.
  8733.  
  8734. PreFab Software, Inc. * 34 Bartlett St. * Somerville, MA * 02145
  8735.  
  8736. Inquiries & Orders: 617-628-9025 (24 hour)
  8737. FAX: 617-628-9043
  8738. VoiceMail: 617-628-9555
  8739. CompuServe: 70214,424
  8740. Internet: player@prefab.com
  8741. =========================================================================
  8742. Date:         Thu, 10 Nov 1994 13:58:31 -0500
  8743. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8744. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8745. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  8746. Subject:      Re: Filemaker - repeating fields
  8747. In-Reply-To:  <no.id> from "Todd Hooper" at Nov 10, 94 11:22:55 pm
  8748.  
  8749. --Todd Hooper wrote:
  8750. >
  8751. >What AppleScript do I use to access instantiation 'n' of the repeating
  8752. >fields? I have tried a few variations with no luck. The example scripts
  8753. >for FileMaker don't appear to have any references to repeating fields.
  8754.  
  8755.     Well, you kind of can't access item n of a repeating field. What you
  8756. will need to do is get all of the elements of the repeating field as a
  8757. list and then work on the elements of the list in AppleScript. When your
  8758. done making changes to the list to put the new list back into the
  8759. repeating field.
  8760.  
  8761. -Hades
  8762. =========================================================================
  8763. Date:         Thu, 10 Nov 1994 22:51:08 +0100
  8764. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8765. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8766. From:         Marc Bizer <bizer@CLIPPER.ENS.FR>
  8767. Subject:      drag and drop application for changing creator code
  8768.  
  8769. Hi everyone,
  8770.         I was interested in the question about how to write a script that
  8771. would change a file's creator code, but I do that a lot. I'd like to make a
  8772. script-application onto which I can drop files to change their creator
  8773. codes, but nothing I do seems to produce the icon with the downward arrow
  8774. that the drop-compatible app should have (my app also doesn't allow me to
  8775. drop on it). What am I doing wrong? I know that this is a stupid question,
  8776. but I haven't received the Tao of AppleScript yet.-:)
  8777.         Attached is my script.
  8778.         Many thanks,
  8779.         Marc
  8780.  
  8781. on run
  8782.         tell application "Finder"
  8783.                 activate
  8784.                 set theFile to selection
  8785.                 set file type of file theFile to "TEXT"
  8786.                 set creator type of file theFile to "R*ch"
  8787.         end tell
  8788. end run
  8789. =========================================================================
  8790. Date:         Thu, 10 Nov 1994 17:00:32 -0500
  8791. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8792. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8793. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  8794. Subject:      Re: drag and drop application for changing creator code
  8795. In-Reply-To:  <no.id> from "Marc Bizer" at Nov 10, 94 10:51:08 pm
  8796.  
  8797. --Marc Bizer wrote:
  8798. >
  8799. >        I was interested in the question about how to write a script that
  8800. >would change a file's creator code, but I do that a lot. I'd like to make a
  8801. >script-application onto which I can drop files to change their creator
  8802. >codes, but nothing I do seems to produce the icon with the downward arrow
  8803. >that the drop-compatible app should have (my app also doesn't allow me to
  8804. >drop on it). What am I doing wrong? I know that this is a stupid question,
  8805. >but I haven't received the Tao of AppleScript yet.-:)
  8806.  
  8807.     It's a basic question, but it's one that is very easy to miss. This
  8808. is basically what your script should look like:
  8809.  
  8810. on open theFiles
  8811.    tell application "Finder"
  8812.       repeat with f in theFiles
  8813.          set file type of file f to "TEXT"
  8814.          set creator type of file f to "R*ch"
  8815.       end repeat
  8816.    end tell
  8817. end open
  8818.  
  8819.  
  8820.     It's the "on open theFiles" that tells the Script Editor that you
  8821. want to create a droplet instead of an applet. Any script with an "on
  8822. open" handler will default to saving as a droplet is you choose to save
  8823. it as an application. The "on run" and "on idle" handlers will default
  8824. to applets. It's important to note that the "on open" handler seems to
  8825. take precedence over the other two because if you save a script that
  8826. contains an "on open" and one or more of the others it will default to a
  8827. droplet. But you will still be able to simply double click on it, as
  8828. well.
  8829.  
  8830. -Hades
  8831. =========================================================================
  8832. Date:         Thu, 10 Nov 1994 16:24:11 -0600
  8833. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8834. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8835. From:         Fred Terry <pfterry@LKS.CSI.COM>
  8836. Subject:      new on gaea
  8837.  
  8838. Everyone,
  8839.  
  8840. You'll find Preston Holmes' much discussed PGP scripts in
  8841.  
  8842. ftp://gaea.kgs.ukans.edu/applescript/scripts/PGP_Scripts_1.0.sit.hqx
  8843.  
  8844. You might also want to check out the XCMD Shell in
  8845.  
  8846. ftp://gaea.kgs.ukans.edu/applescript/addons/XCMDShell0.1b3.sit.hqx
  8847.  
  8848. XCMD Shell is an application which allows you to call XCMD's from AppleScript
  8849. without running HyperCard. XCMD Shell is much faster than running HyperCard,
  8850. and it is distributable with your AppleScripts for nothing. This version fixes
  8851. some memory problems the earlier version had.
  8852.  
  8853. Enjoy,
  8854.  
  8855. pf
  8856. =========================================================================
  8857. Date:         Thu, 10 Nov 1994 14:44:16 -0800
  8858. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8859. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8860. From:         Kevin Purcell <kevinpu@ATM.COM>
  8861. Subject:      Re: drag and drop application for changing creator code
  8862.  
  8863. >Hi everyone,
  8864. >        I was interested in the question about how to write a script that
  8865. >would change a file's creator code, but I do that a lot. I'd like to make a
  8866. >script-application onto which I can drop files to change their creator
  8867. >codes, but nothing I do seems to produce the icon with the downward arrow
  8868. >that the drop-compatible app should have (my app also doesn't allow me to
  8869. >drop on it). What am I doing wrong? I know that this is a stupid question,
  8870. >but I haven't received the Tao of AppleScript yet.-:)
  8871. >        Attached is my script.
  8872. >        Many thanks,
  8873. >        Marc
  8874. >
  8875. >on run
  8876. >        tell application "Finder"
  8877. >                activate
  8878. >                set theFile to selection
  8879. >                set file type of file theFile to "TEXT"
  8880. >                set creator type of file theFile to "R*ch"
  8881. >        end tell
  8882. >end run
  8883.  
  8884. You need an open handler to make a droplet. This handler needs one
  8885. parameter which is list of aliases to the files dropped on the droplet.
  8886.  
  8887. The script fragment
  8888.  
  8889. on open theFilelist
  8890.     repeat with theItem in theFilelist
  8891.         ...
  8892.         do something to the item
  8893.         ...
  8894.     end
  8895. end
  8896.  
  8897. is something of an AppleScript idiom.
  8898.  
  8899. Kevin Purcell      Attachmate Corp        (206) 649-6489
  8900. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  8901. =========================================================================
  8902. Date:         Fri, 11 Nov 1994 11:59:00 +1300
  8903. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8904. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8905. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  8906.               NZ" <LDO@WAIKATO.AC.NZ>
  8907. Subject:      "Get Terminology" event question
  8908.  
  8909. Hi all.
  8910.  
  8911. I'm working on a new version of EightyLister (patience, patience!). One of the
  8912. new features I'm trying to provide is the option to get an application's
  8913. terminology by sending them a "get terminology" event, rather than just by
  8914. opening the application file directly. This would be useful for applications
  8915. which have dynamic terminologies.
  8916.  
  8917. Trouble is, I don't think I've got a proper understanding of how the AppleScript
  8918. "get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
  8919. is a document called "AppleScript Suite". This describes the get terminology
  8920. event, but doesn't say that there are any parameters for it. So how do you
  8921. specify what language code and script code you want the terminology for?
  8922.  
  8923. The only application I've got at home with dynamic terminology is the
  8924. Scriptable Finder. When I try sending it a get terminology event, I get an
  8925. error saying some parameter is missing.
  8926.  
  8927. Can anybody shed some light on this? Thanks if you can.
  8928.  
  8929. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  8930. Computer Services Dept                     fax: +64-7-838-4066
  8931. University of Waikato            electric mail: ldo@waikato.ac.nz
  8932. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  8933. =========================================================================
  8934. Date:         Thu, 10 Nov 1994 04:13:39 -0800
  8935. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8936. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8937. From:         "Thomas C. O'Brien" <tomo@UCLINK.BERKELEY.EDU>
  8938. Subject:      Scriptable Telnet App?
  8939.  
  8940. Does anyone know of a scriptable Telnet App?
  8941.  
  8942. Thanks,
  8943.  
  8944. Tomo
  8945.  
  8946. tomo@uclink.berkeley.edu
  8947.  
  8948.  
  8949. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  8950. Thomas C. O'Brien
  8951. Instructional Technology Coordinator
  8952. Academic Achievement Division
  8953. 2515 Channing Way
  8954. UC Berkeley
  8955. Berkeley CA 94720
  8956.  
  8957. <a href="http://128.32.252.17/Tomo's_Home_Page.html">Tomo -
  8958. tomo@uclink.berkeley.edu</a>
  8959. (510) 643-9569
  8960. =========================================================================
  8961. Date:         Thu, 10 Nov 1994 16:27:11 -0800
  8962. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8963. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  8964. From:         Jerry Ballard <gqb@FARALLON.COM>
  8965. Subject:      Re: Scriptable Telnet App?
  8966.  
  8967. Vicom
  8968. 604-684-9517 voice
  8969. 604-684-9519 fax
  8970.  
  8971. I'd also assume you can do Telnet thru Microphone...
  8972.  
  8973. Here's the Vicom dictionary...
  8974.  
  8975. Required Suite: Events that every application should support
  8976.  
  8977. open: Open the specified object(s)
  8978.         open  alias  -- list of objects to open
  8979.  
  8980. print: Print the specified object(s)
  8981.         print  alias  -- list of objects to print
  8982.  
  8983. quit: Quit application
  8984.         quit
  8985.  
  8986. run: Sent to an application when it is double-clicked
  8987.         run
  8988.  
  8989. VICOM events: Additional events supported by VICOM
  8990.  
  8991. Send Message: Sends a message to a running macro
  8992.         Send Message  string
  8993.                 [params  string]  -- Parameters which are passed to the macro
  8994.                 [to window  string]  -- Window to send the message to
  8995.                 [async  constant]  -- Script continues without waiting for the m
  8996. acro to
  8997. terminate
  8998.         [Result:   anything]
  8999.  
  9000. Do Script: Execute a VICOM script
  9001.         Do Script  alias  -- The name of the file containing the script
  9002.                 [params  string]  -- Parameters which are passed to the macro
  9003.                 [in window  string]  -- Window to run the macro in
  9004.                 [async  constant]  -- Script continues without waiting for the m
  9005. acro to
  9006. terminate
  9007.         [Result:   anything]
  9008.  
  9009. Connect to: Connects to a service
  9010.         Connect to  string  -- Name of the service to connect to
  9011.  
  9012. GetGlobal: Returns a value of a VICOM global variable
  9013.         GetGlobal  string  -- Name of the variable
  9014.         Result:   anything
  9015.  
  9016. SetGlobal: Sets a value of a VICOM global variable
  9017.         SetGlobal  string  -- Name of the variable
  9018.                 to  anything  -- value to set the variable to
  9019.  
  9020.  
  9021. _______________________________________________________________________________
  9022.  
  9023.  
  9024. Does anyone know of a scriptable Telnet App?
  9025.  
  9026. Thanks,
  9027.  
  9028. Tomo
  9029.  
  9030. tomo@uclink.berkeley.edu
  9031.  
  9032.  
  9033. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  9034. Thomas C. O'Brien
  9035. Instructional Technology Coordinator
  9036. Academic Achievement Division
  9037. 2515 Channing Way
  9038. UC Berkeley
  9039. Berkeley CA 94720
  9040.  
  9041. <a href="http://128.32.252.17/Tomo's_Home_Page.html">Tomo -
  9042. tomo@uclink.berkeley.edu</a>
  9043. (510) 643-9569
  9044. =========================================================================
  9045. Date:         Thu, 10 Nov 1994 21:57:24 -0500
  9046. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9047. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9048. From:         Atul Butte <atul@NETCOM.COM>
  9049. Subject:      Re: Scriptable Telnet App?
  9050.  
  9051. >Does anyone know of a scriptable Telnet App?
  9052. >
  9053. >Thanks,
  9054. >
  9055. >Tomo
  9056.  
  9057. My TCP/IP Scripting Addition includes a Telnet sample script... you can
  9058. modify it to do whatever you'd like during a telnet session.
  9059.  
  9060. You can find it at gaea.kgs.ukans.edu, in
  9061.  
  9062. ftp://gaea.kgs.ukans.edu/applescript/osaxen/tcpip-addition-unreg-1.1.2.sea.hqx
  9063.  
  9064. or on any infomac mirror, in:
  9065.  
  9066. [Archived as /info-mac/dev/tcp-ip-112-osax.hqx; 1027K]
  9067.  
  9068. Let me know if you have any questions on using it or customizing it...
  9069.  
  9070. -- Atul
  9071.  
  9072.  
  9073.  
  9074. +----------------------------------------------------------------------
  9075. | Atul Butte
  9076. | President, Mango Tree Software
  9077. | Box 41119
  9078. | Providence, RI 02940
  9079. | 401-942-6882
  9080. |
  9081. | atul@netcom.com
  9082. =========================================================================
  9083. Date:         Thu, 10 Nov 1994 19:08:41 -0600
  9084. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9085. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9086. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  9087. Subject:      Re: Filemaker - repeating fields
  9088.  
  9089. Hi Todd,
  9090.  
  9091. I've written an applet/Filemaker package called List Processor that works
  9092. around some of the problems of dealing with repeating fields. The reason it's
  9093. called List Processor is that Filemaker Pro repeating fields are returned to
  9094. AppleScript as lists of strings if you get data on a field of one record.
  9095.  
  9096. For example, in a mythical database containing one repeating field with five
  9097. repetitions in one record, the following would happen:
  9098.  
  9099. Get Data Field 1 of database 1
  9100. => {"1", "2", "3", "4", "5"}
  9101.  
  9102. Get Data Cell 1
  9103. => {"1"} -- same as item 1 of the result returned by the first event
  9104.  
  9105. Get Data Cell 2
  9106. => {"2"} -- same as item 2 of the result returned by the first event
  9107.  
  9108. If you had two records, the following would happen:
  9109.  
  9110. Get Data Field 1
  9111. => {{"1", "2", "3", "4", "5"}, {"6", "7", "8", "9", "10"}}
  9112.  
  9113. You also need to review the object containment stuff in the "Filemaker and
  9114. Apple Events" database. Get Data Field gets all values in all records (either
  9115. in the found set or in the entire database). Get Data Cell gets only the
  9116. value in a specified field in a specified record. Doing this on a repeating
  9117. field gets only one repetition.
  9118.  
  9119. As for the other stuff in List Processor, which I need to send to the FTP
  9120. site, the package demonstrates running AppleScript scripts from scripts and
  9121. buttons in an example database. Examples include, appending single fields to
  9122. the beginning or end of repeating fields, combining values in two repeating
  9123. fields into a third repeating field (allowing you to specify which comes
  9124. first or last), getting values from single fields in one database and putting
  9125. them into a repeating field in another database, sorting items in individual
  9126. repeating fields alphabetically, by date or numerically, sorting repeating
  9127. fields in groups (so that individual lines stay together after sorting) with
  9128. multiple sort keys, and deleting lines of multiple repeating fields based on
  9129. the value selected in a radio button. Whew!
  9130.  
  9131. I'll send it to the ftp site either tonight or tommorow. I think it's worth
  9132. looking at because it has some good examples of using AppleScript to
  9133. manipulate repeating fields.
  9134.  
  9135. Dennis L. Whiteman
  9136. THE ULTIMATE FREELANCER
  9137.  
  9138.  ------ From: Macintosh Scripting Systems, Thu, Nov 10, 1994 ------
  9139.  
  9140. I have a FileMaker database with repeating fields in it e.g. the
  9141. record stores a name and other details, plus a date and notes field
  9142. which can repeat up to ten times.
  9143.  
  9144. What AppleScript do I use to access instantiation 'n' of the repeating
  9145. fields? I have tried a few variations with no luck. The example scripts
  9146. for FileMaker don't appear to have any references to repeating fields.
  9147.  
  9148. I know I have seen this one before but I can't remember it for the
  9149. life of me!
  9150.  
  9151. Thanks,
  9152.  
  9153. Todd
  9154. =========================================================================
  9155. Date:         Fri, 11 Nov 1994 01:13:51 -0500
  9156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9158. From:         Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
  9159. Subject:      Re: GNU diff droplet
  9160.  
  9161. Fred Terry <pfterry@lks.csi.com> wrote:
  9162. > Tom Pollard has contributed a GNU diff droplet script that I have moved into
  9163. >
  9164. > ftp://gaea.kgs.ukans.edu/applescript/scripts/GNU_diff.sit.hqx
  9165. >
  9166. [...]
  9167. > file-comparison utility. Be sure to read the Read Me file.
  9168.  
  9169. Since it's not archived on gaea separately, here's a copy of the Read
  9170. Me, to give you a better idea of whether this package is going to be
  9171. useful to you or not.  I've been using it in more or less its present
  9172. form for the last six or seven months, now.
  9173.  
  9174. Cheers,
  9175.  
  9176. Tom
  9177.  
  9178.  
  9179. -----------------------------------------
  9180. AppleScript/QuicKeys droplet for GNU diff
  9181. -----------------------------------------
  9182.  
  9183. "GNU diff" is an AppleScript droplet that acts as a "user-friendly"
  9184. wrapper for "diff", the Unix file-comparison utility.  QuicKeys 3.0
  9185. is used to drive the actual application.  A number of Applescript
  9186. extensions are used, in particular the "Regular Expressions" and "Choose
  9187. Files & Folders" extensions from Mark Alldritt's Script Tools Suite.
  9188.  
  9189. --- Installation
  9190.  
  9191. To use "GNU Diff", it's only necessary that the "GNU Diff" droplet is in
  9192. the same folder as the rsrcs folder, which holds the "diff" application,
  9193. the dialog window definition and the on-line help file.  Also, make sure
  9194. that you've installed required scripting additions.  The Script Tools
  9195. Suite is available from many places, including the info-mac archives and
  9196. the scripting archives at 'gaea.kgs.ukans.edu'.  You'll probably want to
  9197. put an alias of the GNU diff droplet somewhere where it's easy to drop
  9198. files on it.
  9199.  
  9200. --- Why?
  9201.  
  9202. I put this together because I know of no other drop-launchable
  9203. application that reports the differences between two files or two
  9204. folders.  The available shareware/freeware utilities (Compare-0.9,
  9205. Compare-All, TCXDiff) all have interfaces that are awkward to use for
  9206. multiple file comparisons.  Also, I like and understand the format in
  9207. which "diff" reports its results, but none of the other applications
  9208. supports this.
  9209.  
  9210. --- Description
  9211.  
  9212. "Diff" is a simple port of the corresponding Gnu utility to the Mac by
  9213. Timothy Murphy of Trinity College Dublin <tim@maths.tcd.ie>; it and its
  9214. source code are ftpable from ftp.maths.tcd.ie.  It's based on version
  9215. 2.0 of "diff".  While functional, its only user interface is
  9216. unfortunately the Think C console i/o dialog. :-(  This means, for
  9217. instance, that the input file names have to be typed in to the dialog
  9218. window, with full path names if they're in a different directory from
  9219. the application!
  9220.  
  9221. My Applescript droplet hides this abomination by offering a drop-launch
  9222. interface and a (more) friendly dialog for specifying the input and
  9223. output files and the command line options.  QuicKeys is used to launch
  9224. the actual application and paste in the command-line arguments that were
  9225. prepared by Applescript.  I think it's a good example of how the two
  9226. systems can be used together to script otherwise unscriptable apps.
  9227.  
  9228. Although it could be improved, it's now possible to get the diffs of two
  9229. files (a control file and a comparison file) by dropping them on the
  9230. "GNU diffs" app.  There's an option to switch the order of the file
  9231. arguments; this is useful since you don't have any control of the order
  9232. in which the files are given to the app when drop-launching.  I haven't
  9233. tested all of the many features of the underlying Unix application, but
  9234. those I have tried seem to do what you'd expect them to.
  9235.  
  9236. Particularly nice is the ability to drag two folders onto the droplet
  9237. and get comparisons of all matching files in the two.
  9238.  
  9239. Online help for the diff command-line options is provided by opening a
  9240. QuicKeys text editor window with the help file, taken largely from the
  9241. info file distributed with the current GNU version of diff.  Additional
  9242. documentation for the app is available in the included copy of the Sun
  9243. man pages for diff (sorry if these don't correspond exactly to the
  9244. version that Timothy Murphy ported).
  9245.  
  9246. --- Wishlist
  9247.  
  9248. Right now, the dialog resource is kept in a separate file.  It would be
  9249. better to put it directly into the Applescript droplet, but the Script
  9250. Editor seems to destroy it if you make and save any changes to the script.
  9251. Second, it would be nice to offer a more user-friendly way of choosing
  9252. command-line options, such as a big panel of buttons or a list dialog.
  9253. Finally, I'd prefer to avoid the QuicKey'ing the file i/o dialog
  9254. altogether, but there's no good way to specify the output file for diff using
  9255. only QuicKeys and Applescript (suggestions?).
  9256.  
  9257. --- Disclaimer
  9258.  
  9259. While it's reasonably bomb-proof on my own system, a Q610 running system
  9260. 7.1 with Applescript 1.1 and QuicKeys 3.0, there can't be any guarantees
  9261. about its stability on any other machine.  Any suggestions, gripes and
  9262. especially improvements will be gratefully accepted.
  9263.  
  9264. I have a similar droplet for the complementary application, 'patch', but
  9265. it still hasn't been updated to work under AppleScript 1.1.  It wouldn't
  9266. take more than a morning, but since it hasn't turned out to be all
  9267. that important for me, it hasn't been done yet.  If anyone wants it in
  9268. its current form, they're welcome to it.
  9269.  
  9270. My meager contributions to this package are public domain.  "Diff" is,
  9271. in principle, "Free Software", and Mark Alldritt's scripting additions
  9272. are freely useable but copyrighted (right?).
  9273.  
  9274. Hope this is useful to someone besides me :-)
  9275.  
  9276. Tom Pollard
  9277. Nov 5, 1994
  9278.  
  9279. -------------------------------------------------------------------------------
  9280. W. Thomas Pollard                       Department of Chemistry
  9281. pollard@cucbs.chem.columbia.edu         Columbia University
  9282. -------------------------------------------------------------------------------
  9283. =========================================================================
  9284. Date:         Fri, 11 Nov 1994 01:08:38 EST
  9285. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9286. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9287. From:         David Lloyd <100046.3512@COMPUSERVE.COM>
  9288. Subject:      Scripting WindowShade
  9289.  
  9290. Scripting WindowShade...
  9291.  
  9292. > So, did anyone figure this out. I've decided having a few windows (System
  9293. > Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
  9294. > shrunk down is a good thing. However, when I reboot, I have to go through and
  9295. > manually shrink each one. Unfortunately, it appears that since WindowShade is
  9296. > a control panel scripting this may not be possible. Maybe I'll look at a
  9297. > QuicKeys solution. Can I tell QuicKeys to double-click some place?
  9298.  
  9299. I saw this,  and thought, this is a neat idea.
  9300. I came up with this:
  9301.  
  9302. tell application "Finder"
  9303.         activate
  9304.         copy windows to x
  9305.         copy (count of windows) to numWindows
  9306.  
  9307.         repeat with i from 1 to numWindows
  9308.                 copy bounds of window i to theBounds
  9309.                 copy ((item 1 of theBounds) + 30) to itemOne
  9310.                 copy ((item 2 of theBounds) - 10) to itemTwo
  9311.                 AutoClick {itemOne, itemTwo}
  9312.                 AutoClick {itemOne, itemTwo}
  9313.                 AutoClick {itemOne, itemTwo}
  9314.         end repeat
  9315.  
  9316. end tell
  9317.  
  9318. Unfortunately you can only get the Autoclick osax once you've registered
  9319. the Autotype osax (only a fiver).  Auto click simulates the mouse-
  9320. it  clicks at the coordinates as given in its parameters.
  9321. There are three clicks, one to activate the window and a double click.
  9322. For some reason, a double click on its own did not work as it should.
  9323.  
  9324. See that it also requires the scriptable Finder.
  9325.  
  9326. I saved this script as an application
  9327. and put it in my startup folder and it works as expected.
  9328.  
  9329. Dave L.
  9330. =========================================================================
  9331. Date:         Thu, 10 Nov 1994 22:40:36 -0800
  9332. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9333. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9334. From:         Jon Pugh <jonpugh@NETCOM.COM>
  9335. Subject:      Re: "Get Terminology" event question
  9336.  
  9337. Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
  9338. >
  9339. >I don't think I've got a proper understanding of how the AppleScript
  9340. >"get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
  9341. >is a document called "AppleScript Suite". This describes the get terminology
  9342. >event, but doesn't say that there are any parameters for it. So how do you
  9343. >specify what language code and script code you want the terminology for?
  9344. >
  9345. >The only application I've got at home with dynamic terminology is the
  9346. >Scriptable Finder. When I try sending it a get terminology event, I get an
  9347. >error saying some parameter is missing.
  9348.  
  9349. The direct parameter is a long which describes what language you want the
  9350. terminology in.  Basically, it is simply the script code shifted left 8
  9351. bits with the country code added into the low byte.  This is,
  9352. coincidentally, the resource id of the aete that you want.
  9353.  
  9354. For English, this is 0.  French is 1.  Japanese has two, 11 for Romanji and
  9355. 267 for Kanji.
  9356.  
  9357. Jon
  9358. =========================================================================
  9359. Date:         Thu, 10 Nov 1994 22:40:47 -0800
  9360. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9361. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9362. From:         Jon Pugh <jonpugh@NETCOM.COM>
  9363. Subject:      Re: Multiple source files?
  9364.  
  9365. >> Coming from a tradition of small and concise C source files, I'd like to
  9366. >> use multiple source files for my compiled scripts and applications. Is
  9367. >> there a way I may do this with the standard AS package?
  9368. >>
  9369. >Yes. Have a look at the chapter on script objects in the AppleScript
  9370. >Language Reference.
  9371. >
  9372. >Basically, you just save a script with a few handlers in it, and load it as
  9373. >a script object in your calling routine (myScript = load script "Foo").
  9374. >Then refer to the handler in any of the normal ways (Foo's bar, tell Foo to
  9375. >bar, bar of Foo...)
  9376.  
  9377. An alternative, which is not simply the AppleScript package, is to use my
  9378. ScriptServer application and Leonard's OSA Menu to run an AppleScript which
  9379. will combine several files (ala #include) and compile the resulting file.
  9380. I have included a simple example script with ScriptServer, but I've left
  9381. the #include as an exercise for the reader.
  9382.  
  9383. If anyone wants to send me a script that does includes, I'll put it into
  9384. the ScriptServer package.  Otherwise it has to wait until I get some time
  9385. to write it, which ain't going to happen any time soon because I just got a
  9386. couple of Newtons and won't be having much free time until I get them doing
  9387. everything the way I want them too.  ;)
  9388.  
  9389. Jon
  9390. =========================================================================
  9391. Date:         Thu, 10 Nov 1994 22:57:47 -0700
  9392. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9393. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9394. From:         MR Mac - Michael Robertson <robertso@SDSC.EDU>
  9395. Subject:      Tricky problem using date comparison
  9396.  
  9397. Here's the problem:
  9398.  
  9399. I have a script which I want to do a date comparison. The problem is that I
  9400. have to do this date comparison on a chunk of data I get within a loop
  9401. while talking to another app. This app has its own definition of what
  9402. 'date' means and refuses to work. Here's a simple example:
  9403.  
  9404. This works:
  9405. ----------
  9406. set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
  9407. set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
  9408.                ^               ^
  9409.                |               |
  9410.  
  9411.  
  9412. This does not work:
  9413. -------------------
  9414. tell application "Eudora"
  9415.    repeat (for a whole bunch of messages)
  9416.     set TheDate to date of message x of mailbox boxToCheck of mail folder ""
  9417.                     ^
  9418.                     |  (this line works
  9419.  
  9420.     set diff to (date TheDate) - (date "Monday, October 31, 1994")
  9421.                    ^               ^
  9422.                    |               | (this line won't)
  9423.  
  9424.     if diff meets some criteria
  9425.      munge the message
  9426.     end if
  9427.  
  9428.    end repeat
  9429. end tell
  9430.  
  9431.  
  9432. Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
  9433. using Eudora's definition of the term 'date' and not Applescripts. I can't
  9434. very well jump out of Eudora (end tell) because I'm right in the middle of
  9435. a repeat loop and I have to get assign the value of diff from criteria I
  9436. grab from Eudora. There must be some easy work around for this one. Can
  9437. some expert enlighten me?
  9438.  
  9439. How about Jon P.? Do you think you could stop writing cool OSAXen for the
  9440. *whole* AppleScript community and take time out to spoon feed me
  9441. AppleScript basics? :)
  9442.  
  9443.  
  9444.  
  9445. -- Michael
  9446.  
  9447.  
  9448. _____________________________________________________________________________
  9449. Michael Robertson - MR Mac         (619) 534-5107 office
  9450. Macintosh Business Consultant      (619) 989-8943 pager
  9451. San Diego Supercomputer Ctr.       (619) 534-5152 fax
  9452.  
  9453. Internet, America Online           robertso@sdsc.edu
  9454. _____________________________________________________________________________
  9455. =========================================================================
  9456. Date:         Fri, 11 Nov 1994 03:17:12 -0500
  9457. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9458. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9459. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  9460. Subject:      OSAXen DB
  9461.  
  9462. I've placed in the incoming directory of gaea a FileMaker Pro database of
  9463. all the scripting additions I could find lying around on my hard-drives.
  9464. There are over 300 commands, including syntax. See the readme enclosed for
  9465. notes on its weaknesses and possible confusions.
  9466.  
  9467. Barry
  9468. bchern@freenet.columbus.oh.us
  9469. =========================================================================
  9470. Date:         Fri, 11 Nov 1994 10:49:56 +0100
  9471. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9472. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9473. From:         WalrathW <walrathw@RFERL.ORG>
  9474. Subject:      Re: Tricky problem using date comparison
  9475.  
  9476. > I have a script which I want to do a date comparison. The problem is that I
  9477. > have to do this date comparison on a chunk of data I get within a loop
  9478. > while talking to another app. This app has its own definition of what
  9479. > 'date' means and refuses to work. Here's a simple example:
  9480. >
  9481. > This works:
  9482. > ----------
  9483. > set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
  9484. > set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
  9485. <snip,snip>
  9486. > This does not work:
  9487. > -------------------
  9488. > tell application "Eudora"
  9489. >    repeat (for a whole bunch of messages)
  9490. >     set TheDate to date of message x of mailbox boxToCheck of mail folder
  9491. ""
  9492. >                     ^
  9493. >                     |  (this line works
  9494. >
  9495. >     set diff to (date TheDate) - (date "Monday, October 31, 1994")
  9496. >                    ^               ^
  9497. >                    |               | (this line won't)
  9498. >
  9499. >     if diff meets some criteria
  9500. >      munge the message
  9501. >     end if
  9502. >
  9503. >    end repeat
  9504. > end tell
  9505.  
  9506. Seems like you could do the following though:
  9507.  
  9508. repeat (for a whole bunch of messages)
  9509.   tell application "Eudora"
  9510.     set TheDate to date of message x of mailbox boxToCheck of mail folder ""
  9511.   end tell
  9512.  
  9513.   set diff to (date TheDate) - (date "Monday, October 31, 1994")
  9514.  
  9515.   tell application "Eudora"
  9516.    .... .more stuff
  9517.   end tell
  9518.  
  9519. > How about Jon P.? Do you think you could stop writing cool OSAXen for the
  9520. > *whole* AppleScript community and take time out to spoon feed me
  9521. > AppleScript basics? :)
  9522.  
  9523. Yeah, Jon, Get a life! ....  ;-)
  9524.  
  9525. cheers,
  9526.   -waybe
  9527. =========================================================================
  9528. Date:         Fri, 11 Nov 1994 08:56:17 -0600
  9529. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9530. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9531. From:         Fred Terry <pfterry@LKS.CSI.COM>
  9532. Subject:      Re: OSAXen DB
  9533. In-Reply-To:  Your message of "Fri, 11 Nov 94 03:17:12 EST"
  9534.  
  9535. Everyone,
  9536.  
  9537. >I've placed in the incoming directory of gaea a FileMaker Pro database of
  9538. >all the scripting additions I could find lying around on my hard-drives.
  9539. >There are over 300 commands, including syntax. See the readme enclosed for
  9540. >notes on its weaknesses and possible confusions.
  9541.  
  9542. You'll find Barry's database in
  9543.  
  9544. ftp://gaea.kgs.ukans.edu/applescript/addons/OSAXenDB.sit.hqx
  9545.  
  9546. You'll also find the latest versions of Aladdin's DropStuff and StuffIt
  9547. Expander in
  9548.  
  9549. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/DropStuff_with_EE_3.5.2_Ins
  9550. taller.hqx
  9551. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/StuffIt_Expander_3.5.2_Inst
  9552. all.hqx
  9553.  
  9554. Enjoy.
  9555.  
  9556. pf
  9557. =========================================================================
  9558. Date:         Fri, 11 Nov 1994 09:05:08 U
  9559. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9560. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9561. From:         mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  9562. Subject:      MacPGP scripts?
  9563.  
  9564.                        Subject:                               Time:8:57 AM
  9565.   OFFICE MEMO          MacPGP scripts?                        Date:11/11/94
  9566. >From the title of several recent messages about Eudora and MacPGP I'm assuming
  9567. that the latter is scriptable. Looking at it in ResEdit though I find that it
  9568. has no 'aete' resource for Frontier to sift through. Nor does Gaea's index list
  9569. any scripts for it. So the questions are:
  9570. 1) Is MacPGP really scriptable?
  9571. 2) Does anyone have any scripts for it they'd be willing to upload to Gaea?
  9572.  
  9573. Thanks,
  9574. Mark Stewart
  9575. BIAD-Research Imaging Center
  9576. UTHSCSA
  9577. =========================================================================
  9578. Date:         Fri, 11 Nov 1994 10:46:08 -0500
  9579. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9580. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9581. From:         Danny Goodman <DGoodman@AOL.COM>
  9582. Subject:      Re: Tricky problem using date comparison
  9583.  
  9584. >This app has its own definition of what
  9585. >'date' means and refuses to work.
  9586.  
  9587. I don't have Eudora to see how it handles dates, but I once ran into
  9588. something like this with the offset command.  Rather than break up my main
  9589. script, I sent the job to a subroutine, which was governed by AppleScript
  9590. alone, returning any necessary data (a boolean, in your case) to the main
  9591. script.
  9592.  
  9593. Danny Goodman
  9594. =========================================================================
  9595. Date:         Fri, 11 Nov 1994 08:27:59 PST
  9596. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9597. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9598. From:         David Jokinen <GroundZero@EWORLD.COM>
  9599. Subject:      Re: Scripting WindowShade
  9600.  
  9601. Here's another version of the "Toggle WindowShade" script.
  9602.  
  9603. property pClickPoint : {0, -1}
  9604. property pClickTimes : 2
  9605.  
  9606. on run
  9607.  tell application "Finder"
  9608.   activate
  9609.   repeat with iWindow in windows
  9610.    open iWindow
  9611.    tell application "PreFab Playerx"
  9612.     click location pClickPoint times pClickTimes
  9613.    end tell
  9614.   end repeat
  9615.  end tell
  9616. end run
  9617.  
  9618. I requires the Scriptable Finder and PreFab Player.
  9619.  
  9620. David Jokinen
  9621. Ground Zero Software
  9622. =========================================================================
  9623. Date:         Fri, 11 Nov 1994 08:32:17 PST
  9624. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9625. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9626. From:         David Jokinen <GroundZero@EWORLD.COM>
  9627. Subject:      Re: Tricky problem using date comparison
  9628.  
  9629. >This does not work:
  9630. >-------------------
  9631. >tell application "Eudora"
  9632. >   repeat (for a whole bunch of messages)
  9633. >    set TheDate to date of message x of mailbox boxToCheck of mail folder ""
  9634. >                    ^
  9635. >                    |  (this line works
  9636. >
  9637. >    set diff to (date TheDate) - (date "Monday, October 31, 1994")
  9638. >                   ^               ^
  9639. >                   |               | (this line won't)
  9640. >
  9641. >    if diff meets some criteria
  9642. >     munge the message
  9643. >    end if
  9644. >
  9645. >   end repeat
  9646. >end tell
  9647.  
  9648. Since tell blocks don't persist across handler calls, you could stick your
  9649. date calculation in a separate handler:
  9650. ***
  9651. tell application "Eudora"
  9652.     repeat ...
  9653.         do somthing with theDate...
  9654.         set diff to CalcDiff(theDate)
  9655.         do some more stuff with theDate...
  9656.     end repeat
  9657. end tell
  9658.  
  9659. on CalcDiff(aDate)
  9660.     return aDate - (date "Monday, October 31, 1994")
  9661. end CalcDiff
  9662. ***
  9663. David Jokinen
  9664. Ground Zero Software
  9665. =========================================================================
  9666. Date:         Fri, 11 Nov 1994 12:11:26 -0500
  9667. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9668. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9669. From:         Daniel Berlinger <Daniel@CIRCUMTECH.COM>
  9670. Subject:      Re: MacPGP scripts?
  9671.  
  9672. --part_AAE90FEE0009B19400000002
  9673. Content-Type: Text/Plain; charset=US-ASCII
  9674. Content-Disposition: Inline
  9675.  
  9676. > 1) Is MacPGP really scriptable?
  9677.  
  9678. The unofficial version 2.6 universal which was released with the same
  9679. "limitations" as other unliscensed version has the aete resource. It is my
  9680. understanding that MIT is adding scripting to the official version and have
  9681. decided to wait for that.
  9682.  
  9683. Additionally, the 2.6 version will not read versions older than 2.3, I
  9684. believe, but the universal version does.
  9685.  
  9686. Daniel
  9687.  
  9688. --part_AAE90FEE0009B19400000002
  9689. Content-Type: Text/Plain; charset=US-ASCII
  9690. Content-Disposition: Inline
  9691.  
  9692. Daniel Berlinger                         Daniel@circumtech.com
  9693. "I wasn't thinking...
  9694.           ...obviously this doesn't matter to my point."
  9695. Administrator of Information Systems   Circumstance Technology
  9696. --part_AAE90FEE0009B19400000002--
  9697. =========================================================================
  9698. Date:         Fri, 11 Nov 1994 11:35:38 -0600
  9699. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9700. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9701. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  9702. Subject:      String to Record Class
  9703.  
  9704. Greetings-
  9705.  
  9706. I have an html form running on a web that writes information out to a file.
  9707. As you may know this information is tagged with a field name. This got me
  9708. thinking about applescripts record class so I munged the data it writes to
  9709. the file to look just like a record - example
  9710. {firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  9711. to read that data back in at a later time and have applescript see it as a
  9712. record class object. When you read the file of course you get a string -
  9713. can you coerce this string to a record? The simple - newData as record -
  9714. does not seem to work. Any ideas.
  9715.  
  9716. Best-
  9717.  
  9718. Greg
  9719.  
  9720.  
  9721.  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9722.  Greg Hiner                                      (512) 471-7134 ext.82
  9723.  Computer Support                                hiner@mail.utexas.edu
  9724.  Garrison Hall 318
  9725.  University of Texas at Austin
  9726.  Austin, TX 78712
  9727. =========================================================================
  9728. Date:         Fri, 11 Nov 1994 11:45:15 -0600
  9729. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9730. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9731. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  9732. Subject:      Script Editor Clicking Inaccurate
  9733.  
  9734. Hello,
  9735.  
  9736. Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  9737. 7.5? Selecting text in the editor isn't accurate and I'm getting a little
  9738. frustrated. I have to click close to some text and cursor over to select what
  9739. I want. Clicking is off by one or two characters and its a real problem. I
  9740. didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  9741. file over from the old System. Could this have something to do with this
  9742. problem?
  9743.  
  9744. Dennis L. Whiteman
  9745. THE ULTIMATE FREELANCER
  9746. ultimate@mail.icon.net
  9747. =========================================================================
  9748. Date:         Fri, 11 Nov 1994 19:28:19 +0100
  9749. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9750. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9751. From:         Christoph Dohrmann <cd@GUIDO.ZKM.DE>
  9752. Subject:      Eudora "SaveAs" and other menues
  9753.  
  9754. For some reason I need to save my messages into ASC Files (alfa) after I
  9755. used the menu "Edit|Wrap selection" to limit line length...
  9756. Online I can do this using the appropriate menues...
  9757. I would like to automate this and some more work I need to do in advance with -
  9758. you guessed it -                Applescript.
  9759.  
  9760. Since I need only the body (field "" of message 0) I could copy this and
  9761. write it into a file using the FileI/O osax.
  9762. BUT I thought about using the "save" command that is included with eudora's
  9763. core suite... which syntax is described as
  9764.  
  9765. >save: Save an object
  9766. >    save  reference  -- the object to save
  9767. >       [in  alias]  -- the file in which to save the object
  9768. >       [as  type class]  -- the file type of the document in which to save...
  9769.  
  9770.  
  9771.  
  9772. telling Eudora to
  9773.  
  9774. >    save field "" of message 0 in "TESTFILE" as text
  9775.  
  9776. results in a
  9777.  
  9778. >>   "field "" does not understand the save message..."
  9779.  
  9780. Any Ideas....
  9781.  
  9782. Than_ in advance
  9783.     .
  9784.     .
  9785.     .
  9786.     .
  9787.     X
  9788. =========================================================================
  9789. Date:         Fri, 11 Nov 1994 10:36:18 U
  9790. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9791. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9792. From:         Chuck Pliske <chuckp@U.WASHINGTON.EDU>
  9793. Subject:      Re: MACSCRPT Digest - 9 Nov 1994 to 10 Nov 1994
  9794.  
  9795. I have been trying to use the boolean file properties but they don't seem to
  9796. work:
  9797.  
  9798. on open xyzzy
  9799.         tell application "Finder"
  9800.                 repeat with f in xyzzy
  9801.                         if the folder of f then
  9802.                         ...
  9803.                         end if
  9804.                 end repeat
  9805.         end tell
  9806. end open
  9807.  
  9808. The dictionary sez there are a few of these: locked (which works), and alias
  9809. and folder (which don't seem to work)
  9810.  
  9811. An apple example (synchronize folders) uses the (f as text) and looks for a
  9812. trailing ":" to indicate a folder, but it seems as though there is a testable
  9813. property.
  9814.  
  9815. Am I doing something wrong?
  9816.  
  9817. thanks,
  9818.  
  9819. Chuck
  9820.  
  9821. This mail courtesy of Apple's System 7.5 and StarNine's Internet Gateway
  9822. =========================================================================
  9823. Date:         Fri, 11 Nov 1994 11:02:14 -0800
  9824. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9825. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9826. From:         Kevin Purcell <kevinpu@ATM.COM>
  9827. Subject:      Re: Script Editor Clicking Inaccurate
  9828.  
  9829. >Hello,
  9830. >
  9831. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  9832. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  9833. >frustrated. I have to click close to some text and cursor over to select what
  9834. >I want. Clicking is off by one or two characters and its a real problem. I
  9835. >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  9836. >file over from the old System. Could this have something to do with this
  9837. >problem?
  9838.  
  9839.  
  9840. I reported this one to Apple by way of Adam "TidBITS" Engst and got mail
  9841. back from an Apple test engineer asking how to repro it. I sent a really
  9842. detailed bug report (including step by step instructions) and I think they
  9843. then reproed it and sent it onto engineering.
  9844.  
  9845. In my case it only happened on a Power Mac (any model) with System 7.5 with
  9846. the WorldScript Power Adaptor extension loaded. The offset seemed related
  9847. to the number of style changes in a line of text. Removing the WorldScript
  9848. Power Adaptor extension solved the problem, but TextEdit is then as slow as
  9849. hell.
  9850.  
  9851. This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
  9852.  
  9853. Kevin Purcell      Attachmate Corp        (206) 649-6489
  9854. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  9855. =========================================================================
  9856. Date:         Fri, 11 Nov 1994 19:36:19 GMT
  9857. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9858. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9859. From:         Dan Hinckley <dbh@GN.APC.ORG>
  9860. Subject:      Eudora script upload
  9861.  
  9862. I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
  9863. automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
  9864. this is of interest. I'll appreciate any and all suggestions, comments,
  9865. etc. If anyone can tell me how to move the insertion point in a Eudora msg
  9866. body, I'll do an improved version right away.
  9867. =========================================================================
  9868. Date:         Fri, 11 Nov 1994 14:47:22 -0500
  9869. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9870. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9871. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  9872. Subject:      Re: String to Record Class
  9873.  
  9874. >I have an html form running on a web that writes information out to a file.
  9875. >As you may know this information is tagged with a field name. This got me
  9876. >thinking about applescripts record class so I munged the data it writes to
  9877. >the file to look just like a record - example
  9878. >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  9879. >to read that data back in at a later time and have applescript see it as a
  9880. >record class object. When you read the file of course you get a string -
  9881. >can you coerce this string to a record? The simple - newData as record -
  9882. >does not seem to work. Any ideas.
  9883. >
  9884. > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9885. > Greg Hiner                                      (512) 471-7134 ext.82
  9886. > Computer Support                                hiner@mail.utexas.edu
  9887. > Garrison Hall 318
  9888. > University of Texas at Austin
  9889. > Austin, TX 78712
  9890.  
  9891. Greg,
  9892. What it sounds like you want is a string of records:
  9893.  
  9894. set a to {{Name:"Mark",Address:"hadfield@sickkids.on.ca"},{Name:"Greg",...}}
  9895.  
  9896. You can then 'get record 1 of a'
  9897.  
  9898. I'm not sure if this is a full answer for you maybe just a direction to
  9899. look at...
  9900.  
  9901.  
  9902.  
  9903. Mark Hadfield
  9904. hadfield@sickkids.on.ca
  9905. The Hospital For Sick Children
  9906. =========================================================================
  9907. Date:         Fri, 11 Nov 1994 13:58:23 -0600
  9908. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9909. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9910. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  9911. Subject:      Re: Scriptable Telnet App?
  9912.  
  9913. >>Does anyone know of a scriptable Telnet App?
  9914. >>
  9915. >>Thanks,
  9916. >>
  9917. >>Tomo
  9918. >
  9919. >My TCP/IP Scripting Addition includes a Telnet sample script... you can
  9920. >modify it to do whatever you'd like during a telnet session.
  9921. >
  9922. >You can find it at gaea.kgs.ukans.edu, in
  9923.  
  9924. snip
  9925.  
  9926. >Let me know if you have any questions on using it or customizing it...
  9927. >
  9928. >-- Atul
  9929. >
  9930.  
  9931.  
  9932. Is it possible to write a full featured terminal emulation package using
  9933. this approach, with regard for terminal emulation etc ? What are the
  9934. issues.?
  9935.  
  9936. If this is possible I might give it a try BUT if there are obstacles I
  9937. would like to know of them now rather than when I am down the road.
  9938.  
  9939. Frank C.
  9940. R&E
  9941. =========================================================================
  9942. Date:         Fri, 11 Nov 1994 11:08:25 -0800
  9943. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9944. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9945. From:         Kevin Purcell <kevinpu@ATM.COM>
  9946. Subject:      Re: String to Record Class
  9947.  
  9948. >I have an html form running on a web that writes information out to a file.
  9949. >As you may know this information is tagged with a field name. This got me
  9950. >thinking about applescripts record class so I munged the data it writes to
  9951. >the file to look just like a record - example
  9952. >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  9953. >to read that data back in at a later time and have applescript see it as a
  9954. >record class object. When you read the file of course you get a string -
  9955. >can you coerce this string to a record? The simple - newData as record -
  9956. >does not seem to work. Any ideas.
  9957.  
  9958. Why munge it into a text file?
  9959.  
  9960. If you store it as a property of a script object then you can load and save
  9961. the script object in a script document with very little hassle and still
  9962. have all the information contained inside the script object accessible in
  9963. an easy way. You could have a property contain a list of lists of records
  9964. contain lists of records and have is saved and read perfectly. Or would you
  9965. rather rewrite the AppleScript parser to parse the text stream representing
  9966. these objects.
  9967.  
  9968. When a system gives you (a kind of) object oriented persistent store its
  9969. better to make use of it than to perpetuate the "stream of chars" files as
  9970. a storage medium.
  9971.  
  9972.  
  9973. Kevin Purcell      Attachmate Corp        (206) 649-6489
  9974. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  9975. =========================================================================
  9976. Date:         Fri, 11 Nov 1994 15:05:34 -0500
  9977. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9978. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  9979. From:         John Schettino <js12@GTE.COM>
  9980. Subject:      Re: Script Editor Clicking Inaccurate
  9981.  
  9982. >Hello,
  9983. >
  9984. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  9985. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  9986. >frustrated. I have to click close to some text and cursor over to select what
  9987. >I want. Clicking is off by one or two characters and its a real problem. I
  9988. >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  9989. >file over from the old System. Could this have something to do with this
  9990. >problem?
  9991. >
  9992.  
  9993. Upgraded from 7.1 to 7.5 on a centris, no problem (had AS 1.1 both before
  9994. and after)
  9995.  
  9996. - john
  9997.  
  9998. -----------------------------------------
  9999. js12@gte.com             GTE Laboratories
  10000. John Schettino                Waltham, MA
  10001. =========================================================================
  10002. Date:         Fri, 11 Nov 1994 14:22:27 -0600
  10003. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10004. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10005. From:         Frank Concannon <frank-concannon@UOKHSC.EDU>
  10006. Subject:      Idle time in FaceSpan Application
  10007.  
  10008. Aghhhhhhhhhhh helllllllpppppp!
  10009.  
  10010.         What is the problem with the following piece of script.
  10011.  
  10012. on idle
  10013.   pollTheNet()
  10014.   repurn delayTime
  10015. end idle
  10016.  
  10017.         It is part of a FaceSpan application that I have written that keep
  10018. an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
  10019. do "pollTheNet()" and with the result update a display on my Mac. However
  10020. what happens is that it just continually does "pollTheNet()" which dosent
  10021. do anything for my productivity as my Mac get tied up with repeated polls.
  10022. ( currently I just hit a button to get the lates condition of things ).
  10023.  
  10024.         I am obviously missing something fairly basic here but I have been
  10025. fixated on this for so long that I can't see it any more. I have
  10026. implemented a similar procedure with an AppleScript application and that
  10027. works fine with any delay time I care to specify but I would prefer to run
  10028. a FS application.
  10029.  
  10030.         Is there some concideration to the way in which FS does it as
  10031. opposed to AS.
  10032.  
  10033. incidentally 'set idle delay of application "foo" to whatever' is not what
  10034. I want.
  10035.  
  10036. Frank C.
  10037. R&E
  10038. =========================================================================
  10039. Date:         Fri, 11 Nov 1994 15:41:51 -0500
  10040. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10041. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10042. From:         Troy Heninger <troyh@NETCOM.COM>
  10043. Subject:      Re: Idle time in FaceSpan Application
  10044.  
  10045. At  2:22 PM 11/11/94 -0600, Frank Concannon wrote:
  10046. >Aghhhhhhhhhhh helllllllpppppp!
  10047. >
  10048. >        What is the problem with the following piece of script.
  10049. >
  10050. >on idle
  10051. >  pollTheNet()
  10052. >  repurn delayTime
  10053. >end idle
  10054. >
  10055. >        It is part of a FaceSpan application that I have written that keep
  10056. >an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
  10057. >do "pollTheNet()" and with the result update a display on my Mac. However
  10058. >what happens is that it just continually does "pollTheNet()" which dosent
  10059. >do anything for my productivity as my Mac get tied up with repeated polls.
  10060. >( currently I just hit a button to get the lates condition of things ).
  10061. >
  10062. >        I am obviously missing something fairly basic here but I have been
  10063. >fixated on this for so long that I can't see it any more. I have
  10064. >implemented a similar procedure with an AppleScript application and that
  10065. >works fine with any delay time I care to specify but I would prefer to run
  10066. >a FS application.
  10067. >
  10068.  
  10069. As far as I understand, the delay time has always been specified in
  10070. seconds, not minutes.  That might explain why it continually calls
  10071. pollTheNet().  Try multiplying the number by 60 and see if that helps.
  10072.  
  10073.  ______________________________________________________________________
  10074. | Troy Heninger    | That which you persist in doing becomes easier.   |
  10075. | troyh@netcom.com | Its not that the nature of the thing changes, but |
  10076. |                  | your ability to do it increases. (Heber J. Grant) |
  10077.  ______________________________________________________________________
  10078. =========================================================================
  10079. Date:         Fri, 11 Nov 1994 15:04:08 -0600
  10080. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10081. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10082. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  10083. Subject:      Re: String to Record Class
  10084.  
  10085. >>I have an html form running on a web that writes information out to a file.
  10086. >>As you may know this information is tagged with a field name. This got me
  10087. >>thinking about applescripts record class so I munged the data it writes to
  10088. >>the file to look just like a record - example
  10089. >>{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  10090. >>to read that data back in at a later time and have applescript see it as a
  10091. >>record class object. When you read the file of course you get a string -
  10092. >>can you coerce this string to a record? The simple - newData as record -
  10093. >>does not seem to work. Any ideas.
  10094. >
  10095. >Why munge it into a text file?
  10096. >
  10097. >If you store it as a property of a script object then you can load and save
  10098. >the script object in a script document with very little hassle and still
  10099. >have all the information contained inside the script object accessible in
  10100. >an easy way. You could have a property contain a list of lists of records
  10101. >contain lists of records and have is saved and read perfectly. Or would you
  10102. >rather rewrite the AppleScript parser to parse the text stream representing
  10103. >these objects.
  10104. >
  10105. >When a system gives you (a kind of) object oriented persistent store its
  10106. >better to make use of it than to perpetuate the "stream of chars" files as
  10107. >a storage medium.
  10108. >
  10109.  
  10110. Well yes but let me walk through this a bit because I still think there is
  10111. a problem.
  10112.  
  10113. First I'm taking a long string passed by MacHTTP to my script. Something like:
  10114.  "firstname=Greg&lastname=Hiner&department=American+Studies&position=Graduat
  10115. e&interests=Space+for+something+interesting+to+say%2C+if+you+have+something+
  10116. to+say.+Blah%2C+Blah."
  10117.  
  10118. So first off I'm starting with a string that is being handed to me by
  10119. another program. I then munge this into a string that looks like a record
  10120. (this maybe stupid I guess but hell it was worth a shot). Now I've got
  10121. something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
  10122. save this string as a property but it still isn't a record.
  10123.  
  10124. So I guess the real basic question is can you take a string handed to you
  10125. by another program and turn that string into a record class object?
  10126.  
  10127. If I'm missing something real basic here don't assume I know what I'm
  10128. talking about.
  10129.  
  10130. Thanks,
  10131.  
  10132. Greg
  10133. =========================================================================
  10134. Date:         Fri, 11 Nov 1994 14:45:34 -0600
  10135. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10136. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10137. From:         Fred Terry <pfterry@LKS.CSI.COM>
  10138. Subject:      Re: Eudora script upload
  10139. In-Reply-To:  Your message of "Fri, 11 Nov 94 19:36:19 GMT"
  10140.  
  10141. Hi folks,
  10142.  
  10143. >I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
  10144. >automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
  10145. >this is of interest. I'll appreciate any and all suggestions, comments,
  10146. >etc. If anyone can tell me how to move the insertion point in a Eudora msg
  10147. >body, I'll do an improved version right away.
  10148.  
  10149. This can be found in
  10150.  
  10151. ftp://gaea.kgs.ukans.edu/applescript/scripts/EudoraAutoReply.sit.hqx
  10152.  
  10153. Have fun.
  10154.  
  10155. pf
  10156. =========================================================================
  10157. Date:         Fri, 11 Nov 1994 15:18:22 PST
  10158. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10159. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10160. From:         David Jokinen <GroundZero@EWORLD.COM>
  10161. Subject:      Re: String to Record Class
  10162.  
  10163. >So first off I'm starting with a string that is being handed to me by
  10164. >another program. I then munge this into a string that looks like a record
  10165. >(this maybe stupid I guess but hell it was worth a shot). Now I've got
  10166. >something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
  10167. >save this string as a property but it still isn't a record.
  10168.  
  10169. Hmm... Let me ask a stupid question:
  10170.  
  10171. As long as you're munging, why not munge directly to a record? Or at least a
  10172. list? I've had a lot of success with Wayne Walrath's "tokenize" osax for this
  10173. kind of munging. In fact, one of Wayne's example scripts includes a munger
  10174. for an Internet header that looked a lot like your example.
  10175.  
  10176. As far as writing to a file, try this:
  10177. ***
  10178. set theList to {{firstname:"Greg", lastname:"Hiner"}, {firstname:"David",
  10179. lastname:"Jokinen"}}
  10180.  
  10181. -- open a file
  10182. write theList to theFileRef
  10183.  
  10184. -- take a nap then reopen the file
  10185. set theList to read theFileRef as list
  10186. ***
  10187. David Jokinen
  10188. Ground Zero Software
  10189. =========================================================================
  10190. Date:         Fri, 11 Nov 1994 15:37:17 -0800
  10191. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10192. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10193. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10194. Subject:      Re: Tricky problem using date comparison
  10195.  
  10196. >>This app has its own definition of what
  10197. >>'date' means and refuses to work.
  10198. >
  10199. >I don't have Eudora to see how it handles dates, but I once ran into
  10200. >something like this with the offset command.  Rather than break up my main
  10201. >script, I sent the job to a subroutine, which was governed by AppleScript
  10202. >alone, returning any necessary data (a boolean, in your case) to the main
  10203. >script.
  10204.  
  10205. After one quick test in Frontier, in which Eudora 2.0.1 sent me a message's
  10206. date as the string "Tuesday", I decided I didn't want to deal with that
  10207. (for today it's a time, for this week its a day name, otherwise its a
  10208. date/time string).  There may well be an "as ..." phrase one can use to get
  10209. a known date format from Eudora.
  10210.  
  10211. Maybe over the weekend, if I don't see other posts.
  10212.  
  10213.    --John
  10214.  
  10215. --
  10216. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10217. =========================================================================
  10218. Date:         Fri, 11 Nov 1994 15:41:38 -0800
  10219. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10220. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10221. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10222. Subject:      Re: Script Editor Clicking Inaccurate
  10223.  
  10224. >Hello,
  10225. >
  10226. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  10227. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  10228. >frustrated. I have to click close to some text and cursor over to select what
  10229. >I want. Clicking is off by one or two characters and its a real problem. I
  10230. >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  10231. >file over from the old System. Could this have something to do with this
  10232. >problem?
  10233. >
  10234.  
  10235. Yes...and indeed it is annoying.  It's not restricted to Script
  10236. Editor...you can induce SimpleText to do much the same thing.  It seems to
  10237. be related to heavily mixed type faces on a single line.  [I think it's
  10238. also related to Script Editor's insistence, here, on drawing the right ends
  10239. of long lines under the scroll bar...a problem shared with alternate
  10240. dictionary viewers.]
  10241.  
  10242. On my machine (8100), this problem predates System 7.5, by the way.
  10243.  
  10244.    --John
  10245.  
  10246. --
  10247. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10248. =========================================================================
  10249. Date:         Fri, 11 Nov 1994 18:18:18 +0000
  10250. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10251. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10252. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  10253. Subject:      Re: Script Editor Clicking Inaccurate
  10254.  
  10255.  I copied my prefs
  10256. >file over from the old System. Could this have something to do with this
  10257. >problem?
  10258. >
  10259. >Dennis L. Whiteman
  10260. >THE ULTIMATE FREELANCER
  10261. >ultimate@mail.icon.net
  10262.  
  10263. ScrAp the prefs file and start up the app, it will make new ones. Those are
  10264. almost always your culprit.
  10265.  
  10266. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  10267.          www server: http://josaiah.sewanee.edu/
  10268.         Elomense(MUD): josaiah.sewanee.edu 1999
  10269. =========================================================================
  10270. Date:         Fri, 11 Nov 1994 19:39:40 -0600
  10271. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10272. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10273. From:         Matt Brown <c624618@SHOWME.MISSOURI.EDU>
  10274. Subject:      Re: Script Editor Clicking Inaccurate
  10275.  
  10276. At 11:45 AM 11/11/94, Dennis Whiteman wrote:
  10277. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  10278. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  10279. >frustrated. I have to click close to some text and cursor over to select what
  10280. >I want. Clicking is off by one or two characters and its a real problem.
  10281.  
  10282. Yes, I have this same problem. The strange thing is that it just began, and
  10283. I have changed nothing in my system configuration! Any input would be
  10284. greatly appreciated.
  10285.  
  10286. Matt Brown                       | "Our scientific power has outrun our
  10287.                                  |    spiritual power. We have guided
  10288. c624618@showme.missouri.edu      |      missiles and misguided men."
  10289. http://www.missouri.edu/~c624618 |        --Martin Luther King Jr.
  10290. =========================================================================
  10291. Date:         Fri, 11 Nov 1994 20:46:14 -0800
  10292. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10293. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10294. From:         { brad brace } <bbrace@NETCOM.COM>
  10295. Subject:      Microphone Script help needed
  10296.  
  10297. Can anyone provide some assistance with the following Microphone script?
  10298. I think I'm close to making this work...?
  10299.  
  10300.  Settings File = MicroPhone Settings
  10301.  Script Name = 12-hr
  10302.  Command Key = =
  10303.  F-Key =
  10304.  Menu = YES
  10305.  Button = NO
  10306.  Version = 4000
  10307.  System = Macintosh
  10308.  
  10309. This project requires a script which will upload one jpeg and one gif file
  10310. to my dial-up Internet ftp account every 12 hours. I plan to scan a dozen
  10311. or so photos at a time into my home computer (they will be consecutively
  10312. named, ie. 0001.gif, 0002.gif, 0003.gif... 0001.jpg, 0002.jpg,
  10313. 0003.jpg...etc), and placed in the folder named 12-hr.  The first two of
  10314. these scans need to be renamed to 12hr.gif and 12hr.jpg prior to being
  10315. uploaded (where they will replace the identically named, previous files of
  10316. the last 12 hours). The modem then disconnects and the process repeats 12
  10317. hours later.
  10318.  
  10319. The imagery for this project has been fifteen years in the making, and is an
  10320. appropriate extension from the physically-published ISBN-books (see file
  10321. in my ftp-subdir). There are several thousand, sequenced, grey-scale
  10322. images that are to be electronically published/posted once every 12 hours
  10323. for years to come. Needless to say I need to automate this procedure and
  10324. try and curtail as many glitches as possible at the outset.  Any additional
  10325. assistance/ideas are gratefully appreciated.
  10326.  
  10327.  
  10328.  
  10329.    1    Set Variable * 12-hr from Folder Dialog "'12-hr'"
  10330.    2    Wait Until Time "'12:00'"
  10331.    3    Set Variable * count from Expression "0"
  10332.    4    While Expression "count < 12"
  10333.    5      Set Variable * filename from Expression "'0000' & count & '.jpg'"
  10334.    6      Set Variable * filename from Expression "'0000' & count & '.gif'"
  10335.    7      File * Rename "filename,'12hr.jpg'"
  10336.    8      File * Rename "filename,'12hr.gif'"
  10337.    9      Dial Service * "'netcom'"
  10338.   10      Wait for Text "'login'"
  10339.   11      Send Text String "'bbrace^M'"
  10340.   12      Wait for Text "'password:'"
  10341.   13      Send Text String "'xxxx^M'"
  10342.   14      Repeat
  10343.   15      Until Success
  10344.   16      Send File * ZMODEM Binary "'12hr.jpg'"
  10345.   17      Send File * ZMODEM Binary "'12hr.gif'"
  10346.   18      Send Text String (protected) "'mv 12hr.* ~ftp/pub/bbrace'"
  10347.   19      Send Text String (protected) "'chmod a+r ~ftp/pub/bbrace/*'"
  10348.   20      Send Text String (protected) "'lo'"
  10349.   21      File * Rename "'12hr.jpg',filename"
  10350.   22      File * Rename "'12hr.gif',filename"
  10351.   23      Set Variable * count from Expression "count +1"
  10352.   24    End While
  10353.  
  10354.  
  10355. (Does the 12hr-folder need to be in the Microphone folder?)
  10356. (Will Microphone be able to wake my Mac up every 12hrs?)
  10357.  
  10358. --
  10359.    { brad brace }                               bbrace@netcom.com
  10360.    ftp://ftp.netcom.com/pub/bbrace/bbrace.html    ~finger for pgp
  10361. =========================================================================
  10362. Date:         Fri, 11 Nov 1994 23:07:10 -0800
  10363. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10364. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10365. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  10366. Subject:      Re: Script Editor Clicking Inaccurate
  10367.  
  10368. >>Hello,
  10369. >>
  10370. >>Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  10371. >>7.5? Selecting text in the editor isn't accurate and I'm getting a little
  10372. >>frustrated. I have to click close to some text and cursor over to select w=
  10373. hat
  10374. >>I want. Clicking is off by one or two characters and its a real problem. I
  10375. >>didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  10376. >>file over from the old System. Could this have something to do with this
  10377. >>problem?
  10378. >
  10379. >
  10380. >I reported this one to Apple by way of Adam "TidBITS" Engst and got mail
  10381. >back from an Apple test engineer asking how to repro it. I sent a really
  10382. >detailed bug report (including step by step instructions) and I think they
  10383. >then reproed it and sent it onto engineering.
  10384. >
  10385. >In my case it only happened on a Power Mac (any model) with System 7.5 with
  10386. >the WorldScript Power Adaptor extension loaded. The offset seemed related
  10387. >to the number of style changes in a line of text. Removing the WorldScript
  10388. >Power Adaptor extension solved the problem, but TextEdit is then as slow as
  10389. >hell.
  10390. >
  10391. >This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
  10392.  
  10393. Only because my message crossed yours.  But...my message was *wrong*...only
  10394. the "dictionary under the scroll bar" behavior appears on my IIci (System
  10395. 7.5).  The incorrect hit placement does not.
  10396.  
  10397. And I don't now remember when I first saw that on my PowerMac...it might
  10398. well have been after I switched to a beta 7.5 release.
  10399.  
  10400. Thanks for setting me right!
  10401.  
  10402. Since the problem is curable by removing the WorldScript=81 Power Adapter
  10403. extension (I haven't tried it...no reason to doubt you), it is highly
  10404. likely that it can be repaired by a replacement WorldScript=81 Power
  10405. Adapter...which might mean it happens even sooner than System Update
  10406. [next], and in any case probably not after that.
  10407.  
  10408.    --John
  10409.  
  10410. --
  10411. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10412. =========================================================================
  10413. Date:         Sat, 12 Nov 1994 23:49:09 +1200
  10414. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10415. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10416. From:         Chris Burns <chris-b@CS.AUKUNI.AC.NZ>
  10417. Subject:      SUBSCRIBE
  10418.  
  10419. -----------------------------------------------------------------------
  10420. NewZealand:AucklandUniversity:ComputerScience:HyperMediaUnit:ChrisBurns
  10421. Internet: chris-b@cs.auckland.ac.nz
  10422. Phone:    +64 9 373-7599 x6194
  10423. Fax:      +64 9 373-7453                         Async, therefore I am.
  10424. -----------------------------------------------------------------------
  10425. =========================================================================
  10426. Date:         Sat, 12 Nov 1994 12:16:52 GMT
  10427. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10428. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10429. From:         Dan Hinckley <dbh@GN.APC.ORG>
  10430. Subject:      Re: Eudora auto-reply
  10431.  
  10432. >>Working on an auto-reply from Eudora & it has one bug: after completing the
  10433. >>"connect with checking" and the filtering into mailbox "test" Eudora throws
  10434. >>up an Alert: Sorry, couldn't start that application!" -192 {16.3373}. I hit
  10435. >>OK and the script completes its drill. Tried turning off the Mail Arrived
  10436. >>alerts in Eudora but no joy. Anyone tell me what's up?
  10437. >
  10438. >That's the effect I would expect from trying to start of really Power Mac
  10439. >only application on a 68K Mac.  [Well behaved Power Mac only apps have
  10440. >enough 68K code in CODE resources to put up a "you can't do that on this
  10441. >machine" sort of alert, and quit gracefully.]
  10442. >
  10443. >However, I wouldn't expect that cause in your context.
  10444. >
  10445. >   --John
  10446. >
  10447. >--
  10448. >jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  10449.  
  10450. John,
  10451.  
  10452. Finally solved this: Steve Dorner said to look for a resource 'eNot'
  10453. (Eudora Notify I presume) in Eudora Prefs and throw it away. It worked.
  10454. Opening eNot shows enough for a non-programmer like me to see that Eudora
  10455. had 'acquired', I guess is the word, an AS app I'd been fooling with for
  10456. Notify but which wasn't functional so Eudora couldn't open it.
  10457.  
  10458. Dan
  10459. =========================================================================
  10460. Date:         Sat, 12 Nov 1994 01:53:04 -0500
  10461. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10462. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10463. From:         Caleb Welton <Caleb_Welton@POSTOFFICE.BROWN.EDU>
  10464. Organization: Brown University -- Providence, Rhode Island  USA
  10465. Subject:      Backgrounding
  10466.  
  10467.    Okay, I saw the post from Jaeson Engle earlier on setting a script to
  10468. backdround only (so it wouldn't show up in the application menu), and in
  10469. my case it worked (in his it crashed).  But the problem was this...
  10470.    The script was a folder watcher, it monitered my drop folder to see if
  10471. anything was dropped on it, and if something was it played a sound (pretty
  10472. simple).  However.. after I backgrounded it (using resEdit to change the
  10473. Size resource to backgrounding), it then tried to do it's thing and
  10474. realized that it wasn't the front application.  It then tried to bring
  10475. itself to front, found it was background only, then just flashed on my
  10476. application menu until I shut down.  I couldn't bring it to front to quit,
  10477. and it couldn't bring itself to front to opperate because it was
  10478. background only.
  10479.    I really dislike it cluttering up my applications menu, but as it
  10480. stands I see no other real option.  Does anyone out there have any
  10481. suggestions?
  10482.  
  10483.  
  10484.   thanks,
  10485.  
  10486.          IN(--C--)SAN(--A--)ITY   I(--L--)S   MAND(--e--)ATOR(--B--)Y
  10487. =========================================================================
  10488. Date:         Sat, 12 Nov 1994 09:41:22 -0500
  10489. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10490. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10491. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  10492. Subject:      FMP Repeating Fields and Excel WorkSheets
  10493.  
  10494. Speaking of repeating fields...
  10495.  
  10496. ...I'm trying to figure out how to take the data from a repeating field and
  10497. stuff it into an Excel worksheet as a row.
  10498.  
  10499. I am using
  10500.  
  10501. tell application "FileMaker Pro"
  10502.      copy cellValue of cell "Repeating Field" to theRepeatingField
  10503. end tell
  10504.  
  10505. -- this gets the information from the repeating field as a list
  10506.  
  10507.  
  10508. tell application "Microsoft Excel"
  10509.      make new row at row r with data theRepeatingField
  10510. end tell
  10511.  
  10512. -- this gets me an error that reads Excel cannot continue -10000
  10513.  
  10514. I've called MS tech support and they've not been able to tell me what I
  10515. should be doing.
  10516. =========================================================================
  10517. Date:         Sat, 12 Nov 1994 09:41:31 -0500
  10518. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10519. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10520. From:         Charles Bruce Pelto <CPelto@AOL.COM>
  10521. Subject:      FMP & Picture Fields
  10522.  
  10523. How does one get a picture field out of FMP in an applescript?
  10524.  
  10525. I've tried this with...
  10526.  
  10527. tell application "FileMaker Pro"
  10528.      copy cellValue of cell "Picture" to thePicture
  10529. end tell
  10530.  
  10531. ...which doesn't work.
  10532. =========================================================================
  10533. Date:         Sat, 12 Nov 1994 00:23:46 -0600
  10534. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10535. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10536. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  10537. Subject:      Re(2): Script Editor Clicking Inaccurate
  10538.  
  10539. Actually,
  10540.  
  10541. I'm using a 7100/66av and just installed 7.5 a week ago. The WorldScript
  10542. Power Adaptor extension was also installed. I removed it, but haven't been
  10543. doing in scripting. I'll report back whether it fixes or doesn't fix the
  10544. problem and whether it affects any other apps. BTW, I was wondering, why do I
  10545. need the WorldScript Power Adaptor extension if I'm only using english on my
  10546. system.
  10547.  
  10548. Dennis L. Whiteman
  10549. THE ULTIMATE FREELANCER
  10550.  
  10551.  ------ From: Macintosh Scripting Systems, Fri, Nov 11, 1994 ------
  10552.  
  10553. This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
  10554. =========================================================================
  10555. Date:         Sat, 12 Nov 1994 17:13:29 +0100
  10556. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10557. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10558. From:         WalrathW <walrathw@RFERL.ORG>
  10559. Subject:      Re: String to Record Class
  10560.  
  10561. >>So first off I'm starting with a string that is being handed to me by
  10562. >>another program. I then munge this into a string that looks like a
  10563. >record
  10564. >>(this maybe stupid I guess but hell it was worth a shot). Now I've
  10565. >got
  10566. >>something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I
  10567. >could
  10568. >>save this string as a property but it still isn't a record.
  10569. >
  10570. >Hmm... Let me ask a stupid question:
  10571. >
  10572. >As long as you're munging, why not munge directly to a record? Or at
  10573. >least a
  10574. >list? I've had a lot of success with Wayne Walrath's "tokenize" osax
  10575. >for this
  10576. >kind of munging. In fact, one of Wayne's example scripts includes a
  10577. >munger
  10578. >for an Internet header that looked a lot like your example.
  10579. >
  10580.  
  10581. If you would like to be able to play with lists as if they were actually
  10582. records (the big ommission in AppleScript: not being able to create records
  10583. on the fly--ie, without first defining the labels), I wrote a "search in
  10584. list" osax which will locate an item in a list and either return its index or
  10585. optionally the next item in the list (this is the behavior which is supposed
  10586. to allow you to treat lists like records). There are options for case
  10587. sensitivity, and for searching only even or only odd items in the list. I
  10588. haven't released it yet since I haven't had time to test it much yet, but if
  10589. anyone would like to test it for me, I'd be happy to send a copy.
  10590.  
  10591. -wayne
  10592. =========================================================================
  10593. Date:         Sat, 12 Nov 1994 17:23:18 +0100
  10594. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10595. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10596. From:         WalrathW <walrathw@RFERL.ORG>
  10597. Subject:      Re: Scriptable Telnet App?
  10598.  
  10599. >Is it possible to write a full featured terminal emulation package
  10600. >using
  10601. >this approach, with regard for terminal emulation etc ? What are the
  10602. >issues.?
  10603. >
  10604. >If this is possible I might give it a try BUT if there are obstacles I
  10605. >would like to know of them now rather than when I am down the road.
  10606.  
  10607. Atul's osax will provide you with the connectivity but it can't do anything
  10608. for you with respect to writing a terminal editor. I'm not convinced that
  10609. AppleScript would provide you with the kind of performance you and your users
  10610. would want in a terminal emulator.
  10611.  
  10612. -wayne
  10613. =========================================================================
  10614. Date:         Sat, 12 Nov 1994 11:31:41 +0000
  10615. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10616. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10617. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  10618. Subject:      Gaea down?
  10619.  
  10620. I can't seem to be able to get into gaea since yesterday morning. The error
  10621. I get is:
  10622. "452 Can't create data socket (129.237.140.40,20): Interrupted system call."
  10623.  
  10624. Anyone know what's up?
  10625. TIA,
  10626.  
  10627. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  10628.          www server: http://josaiah.sewanee.edu/
  10629.         Elomense(MUD): josaiah.sewanee.edu 1999
  10630. =========================================================================
  10631. Date:         Sat, 12 Nov 1994 11:28:01 -0800
  10632. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10633. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10634. From:         Kevin Purcell <kevinpu@ATM.COM>
  10635. Subject:      Re(2): Script Editor Clicking Inaccurate
  10636.  
  10637. >I'm using a 7100/66av and just installed 7.5 a week ago.
  10638.  
  10639. Makes me feel like Hercule Poirot!
  10640.  
  10641. >The WorldScript
  10642. >Power Adaptor extension was also installed. I removed it, but haven't been
  10643. >doing in scripting. I'll report back whether it fixes or doesn't fix the
  10644. >problem and whether it affects any other apps.
  10645.  
  10646. It will but you'll have to make the judgement call on whether its worth while.
  10647.  
  10648. It seems also to be related to coloring the text -- do you have
  10649. multi-colored text in you AppleScript formating? If you use fewer colors
  10650. (black only)  I think that works around the problem too (but you loose all
  10651. that syntatic information).
  10652.  
  10653. >BTW, I was wondering, why do I
  10654. >need the WorldScript Power Adaptor extension if I'm only using english on my
  10655. >system.
  10656.  
  10657. Because it contains power mac code for TextEdit even if you don't use any
  10658. other scripts you will use this.
  10659.  
  10660. I eventually went back to a IIci for while (that and because the Power Mac
  10661. is a much better detector of memory problems than a 68k Mac -- it bombs
  10662. much sooner!) and then managed to get a Q700.
  10663.  
  10664. It'll be nice when AppleScript goes native!
  10665.  
  10666. Kevin Purcell      Attachmate Corp        (206) 649-6489
  10667. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  10668. =========================================================================
  10669. Date:         Sat, 12 Nov 1994 11:46:11 -0800
  10670. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10671. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10672. From:         Kevin Purcell <kevinpu@ATM.COM>
  10673. Subject:      Re: Idle time in FaceSpan Application
  10674.  
  10675. >on idle
  10676. >  pollTheNet()
  10677. >  repurn delayTime
  10678. >end idle
  10679. >
  10680. >        It is part of a FaceSpan application that I have written that keep
  10681. >an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
  10682. >do "pollTheNet()" and with the result update a display on my Mac. However
  10683. >what happens is that it just continually does "pollTheNet()" which dosent
  10684. >do anything for my productivity as my Mac get tied up with repeated polls.
  10685. >( currently I just hit a button to get the lates condition of things ).
  10686. >
  10687. >        I am obviously missing something fairly basic here but I have been
  10688. >fixated on this for so long that I can't see it any more. I have
  10689. >implemented a similar procedure with an AppleScript application and that
  10690. >works fine with any delay time I care to specify but I would prefer to run
  10691. >a FS application.
  10692. >
  10693. >        Is there some concideration to the way in which FS does it as
  10694. >opposed to AS.
  10695. >
  10696. >incidentally 'set idle delay of application "foo" to whatever' is not what
  10697. >I want.
  10698.  
  10699. The FS idle command does not work in the same way as the AppleScript idle
  10700. (the user returns the time you want to delay to the next idle event).
  10701.  
  10702. It may be that that is exactly what you want -- have you set it to a value
  10703. other than the default? The default is to get an Idle event every TICK
  10704. (1/60 second) (according to p102 of Building Interfaces). Your Mac isn't
  10705. going to get time to do much else!
  10706.  
  10707. You control the frequency of the idle event messages by setting the idle
  10708. delay of the window or application (with the application value over riding
  10709. the window value if the window value is larger than the application value).
  10710. If you need a variable delay you could do that by setting the idle delay
  10711. property in the idle handler.
  10712.  
  10713. Have you tried this? Have you initialised the property when you opened the
  10714. window (say in a prepare handler or a open ... with properties)?
  10715.  
  10716. Kevin Purcell      Attachmate Corp        (206) 649-6489
  10717. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  10718. =========================================================================
  10719. Date:         Sat, 12 Nov 1994 11:54:36 -0800
  10720. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10721. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10722. From:         Kevin Purcell <kevinpu@ATM.COM>
  10723. Subject:      Re: Backgrounding
  10724.  
  10725. >   I really dislike it cluttering up my applications menu, but as it
  10726. >stands I see no other real option.  Does anyone out there have any
  10727. >suggestions?
  10728.  
  10729. ScriptHider on gaea does this job.
  10730.  
  10731. >From the Read me:
  10732.  
  10733. Script Hider by Mark Aiken
  10734.  
  10735. What is Script Hider, in a nutshell?
  10736.  
  10737.     Script Hider is an invisible application that runs AppleScript (Or
  10738. other OSA-compliant language) scripts. Script Hider was written in response
  10739. to a Netter's complaint: the person in question runs a Mac lab and has a
  10740. monitoring script that gets launched at startup. Unfortunately, the
  10741. students in his lab have a habit of quitting said script, since it is
  10742. visible in the application menu and doesn't look very important. The Netter
  10743. was looking for a way to make his script invisible so people couldn't mess
  10744. with it. I got bored one afternoon, so here it is!
  10745.  
  10746. Kevin Purcell      Attachmate Corp        (206) 649-6489
  10747. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  10748. =========================================================================
  10749. Date:         Sat, 12 Nov 1994 15:19:17 -0500
  10750. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10751. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10752. From:         Caleb Welton <Caleb_Welton@POSTOFFICE.BROWN.EDU>
  10753. Organization: Brown University -- Providence, Rhode Island  USA
  10754. Subject:      Re: Gaea down?
  10755.  
  10756. In article <GRAND%LISTS.APPLESCRIPT.5186@brownvm.brown.edu>, Macintosh
  10757. Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU> wrote:
  10758.  
  10759. > I can't seem to be able to get into gaea since yesterday morning. The error
  10760. > I get is:
  10761. > "452 Can't create data socket (129.237.140.40,20): Interrupted system call."
  10762. >
  10763. > Anyone know what's up?
  10764. > TIA,
  10765.  
  10766. Nope, but I'm getting the same problem,
  10767.  
  10768.   Madness (Caleb Welton)
  10769. =========================================================================
  10770. Date:         Sat, 12 Nov 1994 12:04:24 -0800
  10771. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10772. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10773. From:         Kevin Purcell <kevinpu@ATM.COM>
  10774. Subject:      Re: FMP Repeating Fields and Excel WorkSheets
  10775.  
  10776. >Speaking of repeating fields...
  10777. >
  10778. >...I'm trying to figure out how to take the data from a repeating field and
  10779. >stuff it into an Excel worksheet as a row.
  10780. >
  10781. >I am using
  10782. >
  10783. >tell application "FileMaker Pro"
  10784. >     copy cellValue of cell "Repeating Field" to theRepeatingField
  10785. >end tell
  10786. >
  10787. >-- this gets the information from the repeating field as a list
  10788. >
  10789. >
  10790. >tell application "Microsoft Excel"
  10791. >     make new row at row r with data theRepeatingField
  10792. >end tell
  10793. >
  10794. >-- this gets me an error that reads Excel cannot continue -10000
  10795. >
  10796. >I've called MS tech support and they've not been able to tell me what I
  10797. >should be doing.
  10798.  
  10799. The rows already exist.
  10800.  
  10801. Tell the document to
  10802.  
  10803. set theRange to "R1C1:R1C3"
  10804. set Range theRange to {"4", "5", "6"}
  10805.  
  10806. for 3 items in row 1
  10807.  
  10808. You can build the name with the usual string handling code:
  10809.  
  10810. set theRange to =AC
  10811.         "R" & topRow & "C" & topCol & ":" & "R" & bottomRow & "C" & bottomCo=
  10812. l
  10813.  
  10814. Make sure the data is a list you may have to munge the data you get from
  10815. =46MP to be certain this is the case.
  10816.  
  10817. If the data doesn't fill the range (or overfills the range) then Excel
  10818. bombs (makes debugging fun!)
  10819.  
  10820. Gaea has a collection of info an scripting Excel 4.0
  10821.  
  10822. =AC is the continuation character (option-L) for the MIME impaired
  10823.  
  10824. Kevin Purcell      Attachmate Corp        (206) 649-6489
  10825. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer =20
  10826. =========================================================================
  10827. Date:         Sat, 12 Nov 1994 14:15:05 PDT
  10828. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10829. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10830. From:         Nelson Byrne <Nelson@NBYRNE.SAIC.COM>
  10831. Subject:      Low class
  10832.  
  10833. (***********************
  10834. Chuck Pliske writes:
  10835.  
  10836. CP> I have been trying to use the boolean file properties but they
  10837. CP> don't seem to work:
  10838. CP>
  10839. CP> on open xyzzy
  10840. CP>         tell application "Finder"
  10841. CP>                 repeat with f in xyzzy
  10842. CP>                         if the folder of f then
  10843. CP>                         ...
  10844. CP>                         end if
  10845. CP>                 end repeat
  10846. CP>         end tell end open
  10847. CP>
  10848. CP> The dictionary sez there are a few of these: locked (which works),
  10849. CP> and alias and folder (which don't seem to work)
  10850. CP>
  10851. CP> An apple example (synchronize folders) uses the (f as text) and
  10852. CP> looks for a trailing ":" to indicate a folder, but it seems as
  10853. CP> though there is a testable property.
  10854.  
  10855. I too wonder why you can't say
  10856. folder of f
  10857. in his example.
  10858.  
  10859. I'd think you could test
  10860. class of f
  10861. but that also fails.
  10862.  
  10863. You *can* test
  10864. class of item f
  10865. and that works, as shown below.
  10866.  
  10867. I'd think, then, that you could say
  10868. (class of item f) as string
  10869. but you can't do that either.
  10870. I guess you can't coerce class names to strings, for some reason.
  10871. You *have* to test the class against the keyword, folder.
  10872. ***********************)
  10873.  
  10874. on open xyzzy
  10875.         tell application "Finder"
  10876.                 repeat with f in xyzz
  10877.                         set ans to "not "
  10878.                         if the class of item f is folder then set ans to ""
  10879.                         display dialog (f as string) & " is " & ans & "a folder.
  10880. "
  10881.                 end repeat
  10882.         end tell
  10883. end open
  10884.  
  10885.  
  10886. (***********************
  10887. >>>>>Nelson@nbyrne.SAIC.com
  10888.      Nelson Byrne
  10889.      SAIC  LOC#001/MS#C2
  10890.      10260 Campus Point Drive
  10891.      Sandy Eggo, CA 92121
  10892. >>>>>(619) 546-6485
  10893. ***********************)
  10894. =========================================================================
  10895. Date:         Sat, 12 Nov 1994 14:23:11 -0800
  10896. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10897. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10898. From:         Brian Hall <mspace@NETCOM.COM>
  10899. Subject:      Re: diff of a date
  10900.  
  10901. >Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
  10902. >using Eudora's definition of the term 'date' and not Applescripts. I can't
  10903. >very well jump out of Eudora (end tell) because I'm right in the middle of
  10904. >a repeat loop and I have to get assign the value of diff from criteria I
  10905. >grab from Eudora. There must be some easy work around for this one. Can
  10906. >some expert enlighten me?
  10907.  
  10908. (A Guess) You could always wrap the diff with "Tell finder" inside of the
  10909. "Tell Eudora" bloock.
  10910.  
  10911. __________________________________________________________________________
  10912. Mark/Space Softworks                                    voice 408-293-7299
  10913. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  10914. San Jose, CA 95113                                        bbs 408-293-7290
  10915.  
  10916. Macintosh connectivity software:               Internet: mspace@netcom.com
  10917. Communicate, CTB Tools, PageNOW!                 AppleLink, AOL: MARKSPACE
  10918.                   Goodies at ftp.netcom.com in pub/mspace
  10919. =========================================================================
  10920. Date:         Sat, 12 Nov 1994 15:13:03 -0700
  10921. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10922. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10923. From:         MR Mac - Michael Robertson <robertso@SDSC.EDU>
  10924. Subject:      Creating a record with data in FileMaker
  10925.  
  10926. Anyone have a better way to do the following:
  10927.  
  10928. tell application "FileMaker Pro"
  10929.   Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
  10930. end tell
  10931.  
  10932. THe above works, but Filemaker assigns the variables to seemingly random
  10933. fields within the database. What I'd like to do is to include the field
  10934. name with the variables so the correct data always goes to the right field,
  10935. but I can't figure out the syntax for that. As it is now, if you have a
  10936. bunch of variables, Filemaker seems to do some weird things.
  10937.  
  10938.  
  10939.  
  10940. -- Michael
  10941.  
  10942.  
  10943. _____________________________________________________________________________
  10944. Michael Robertson - MR Mac         (619) 534-5107 office
  10945. Macintosh Business Consultant      (619) 989-8943 pager
  10946. San Diego Supercomputer Ctr.       (619) 534-5152 fax
  10947.  
  10948. Internet, America Online           robertso@sdsc.edu
  10949. _____________________________________________________________________________
  10950. =========================================================================
  10951. Date:         Sun, 13 Nov 1994 10:28:09 +1100
  10952. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10953. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10954. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  10955. Subject:      Re: diff of a date
  10956. In-Reply-To:  <199411122253.JAA27522@ariel.ucs.unimelb.EDU.AU> from "Brian
  10957.               Hall" at Nov 12, 94 02:23:11 pm
  10958.  
  10959. >
  10960. > >Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
  10961. > >using Eudora's definition of the term 'date' and not Applescripts. I can't
  10962. > >very well jump out of Eudora (end tell) because I'm right in the middle of
  10963. > >a repeat loop and I have to get assign the value of diff from criteria I
  10964. > >grab from Eudora. There must be some easy work around for this one. Can
  10965. > >some expert enlighten me?
  10966. >
  10967. > (A Guess) You could always wrap the diff with "Tell finder" inside of the
  10968. > "Tell Eudora" bloock.
  10969. >
  10970. 'Tell me to...'
  10971.  
  10972. "Me" refers to the current script application. If it's a compiled script I think
  10973.  it
  10974. refers to the front application (ie. the Script Editor if you click the
  10975. 'Run' button). I'm not sure about this though.
  10976.  
  10977. Hope this helps,
  10978.  
  10979.  
  10980. /==============================\
  10981. | Jeremy P. Howard              |       "Logic must take care of itself."
  10982. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  10983. \==============================/         Tractatus Logico-Philisophicus
  10984. =========================================================================
  10985. Date:         Sun, 13 Nov 1994 10:33:36 +1100
  10986. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10987. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  10988. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  10989. Subject:      Re: FMP Repeating Fields and Excel WorkSheets
  10990. In-Reply-To:  <199411122253.JAA27564@ariel.ucs.unimelb.EDU.AU> from "Kevin
  10991.               Purcell" at Nov 12, 94 12:04:24 pm
  10992.  
  10993. >
  10994. > >Speaking of repeating fields...
  10995. > >
  10996. > >...I'm trying to figure out how to take the data from a repeating field and
  10997. > >stuff it into an Excel worksheet as a row.
  10998. > >
  10999. > >I am using
  11000. > >
  11001. > >tell application "FileMaker Pro"
  11002. > >     copy cellValue of cell "Repeating Field" to theRepeatingField
  11003. > >end tell
  11004. > >
  11005. > >-- this gets the information from the repeating field as a list
  11006. > >
  11007. > >
  11008. > >tell application "Microsoft Excel"
  11009. > >     make new row at row r with data theRepeatingField
  11010. > >end tell
  11011. > >
  11012. > >-- this gets me an error that reads Excel cannot continue -10000
  11013. > >
  11014. > >I've called MS tech support and they've not been able to tell me what I
  11015. > >should be doing.
  11016. >
  11017. > The rows already exist.
  11018. >
  11019. > Tell the document to
  11020. >
  11021. > set theRange to "R1C1:R1C3"
  11022. > set Range theRange to {"4", "5", "6"}
  11023. >
  11024. > for 3 items in row 1
  11025. >
  11026. > You can build the name with the usual string handling code:
  11027. >
  11028. > set theRange to =AC
  11029. >         "R" & topRow & "C" & topCol & ":" & "R" & bottomRow & "C" & bottomCo=
  11030. > l
  11031. >
  11032. > Make sure the data is a list you may have to munge the data you get from
  11033. > =46MP to be certain this is the case.
  11034. >
  11035. > If the data doesn't fill the range (or overfills the range) then Excel
  11036. > bombs (makes debugging fun!)
  11037. >
  11038. Actually, I think it's OK to overfill a range. I find it easiest to write a
  11039. simple "fillRange" handler, which takes the Excel range name and list data
  11040. as two parameters. It would then find the number of rows, the count of the
  11041. list, and add null string list items to fill up the list (set end of
  11042. theList to "").
  11043.  
  11044. Hope this helps,
  11045.  
  11046.  
  11047. /==============================\
  11048. | Jeremy P. Howard              |       "Logic must take care of itself."
  11049. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  11050. \==============================/         Tractatus Logico-Philisophicus
  11051. =========================================================================
  11052. Date:         Sun, 13 Nov 1994 10:59:10 +1100
  11053. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11054. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11055. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  11056. Subject:      Re: drag and drop application for changing creator code
  11057. In-Reply-To:  <199411110346.OAA21347@ariel.ucs.unimelb.EDU.AU> from "Kevin
  11058.               Purcell" at Nov 10, 94 02:44:16 pm
  11059.  
  11060. >
  11061. > >Hi everyone,
  11062. > >        I was interested in the question about how to write a script that
  11063. > >would change a file's creator code, but I do that a lot. I'd like to make a
  11064. > >script-application onto which I can drop files to change their creator
  11065. > >codes, but nothing I do seems to produce the icon with the downward arrow
  11066. > >that the drop-compatible app should have (my app also doesn't allow me to
  11067. > >drop on it). What am I doing wrong? I know that this is a stupid question,
  11068. > >but I haven't received the Tao of AppleScript yet.-:)
  11069. > >        Attached is my script.
  11070. > >        Many thanks,
  11071. > >        Marc
  11072. > >
  11073. > >on run
  11074. > >        tell application "Finder"
  11075. > >                activate
  11076. > >                set theFile to selection
  11077. > >                set file type of file theFile to "TEXT"
  11078. > >                set creator type of file theFile to "R*ch"
  11079. > >        end tell
  11080. > >end run
  11081.  
  11082. If you're doing this as more as just an exercise, you might find
  11083. 'FileTyper' helpful.
  11084.  
  11085. It includes a program called 'Make AutoTyper', which allows you to create
  11086. droplets that change any Finder info to anything else, including seaching
  11087. through subfolders of a dropped folder.
  11088.  
  11089. I've made an AutoTyper droplet that converts a TeachText file to a BBEdit
  11090. file, for example.
  11091.  
  11092. Hope this helps,
  11093.  
  11094.  
  11095. /==============================\
  11096. | Jeremy P. Howard              |       "Logic must take care of itself."
  11097. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  11098. \==============================/         Tractatus Logico-Philisophicus
  11099. =========================================================================
  11100. Date:         Sun, 13 Nov 1994 11:05:29 +1100
  11101. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11102. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11103. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  11104. Subject:      Re: AppleScripts controlling AppleScripts
  11105. In-Reply-To:  <199411101417.BAA26042@ariel.ucs.unimelb.EDU.AU> from "Mark
  11106.               Hadfield" at Nov 10, 94 09:02:34 am
  11107.  
  11108. >
  11109. > >>
  11110. > >> I'm trying to make one AppleScript send commands to another AppleScript,
  11111. > >> without success. To test the possibility of doing this, I have created two
  11112. > >> AppleScript applications, Master and Slave.
  11113. > >>
  11114. > >> Master's script:
  11115. > >>
  11116. > >> tell application "Slave"
  11117. > >>         run
  11118. > >>         doOrder("This is a test.")
  11119. > >> end tell
  11120. > >>
  11121. > >>
  11122. > >> Slave's script:
  11123. > >>
  11124. > >> on doOrder(theText)
  11125. > >>         display dialog theText
  11126. > >> end doOrder
  11127. > >>
  11128. > >>
  11129. > >> When I run Master, it apparently activates Slave, but all I get is a
  11130. > >> spinning ball cursor and, eventually, a timeout error from Slave. If I
  11131. > >> leave the "run" command out of Master's script or replace "run" with an
  11132. > >> "activate" command, it does not appear to activate Slave.
  11133. >
  11134. >  Jeremy P. Howard responded:
  11135. > >Slave must be saved as 'stay-open'. It doesn't need a run command, but you
  11136. > >do have to have it running to use it (open it with the Scriptable Finder,
  11137. > >eg). Other than that, this should be fine.
  11138. >
  11139. > Jeremy is right with one small addendum:  you do not have to have it
  11140. > running to for it to work.  As long as the slave applet is saved as
  11141. > 'stay-open'  when you issue it a command it will launch and then perform
  11142. > the command.  No need to launch it from the scriptable finder.  Now if the
  11143. > slave applet was on a different Mac on the network it would need to be
  11144. > running to receive the command...
  11145. >
  11146. Oops... that's what I meant! (Sorry). I'm in network mode after just
  11147. completing a remote printing application, which called QuicKeys, remote
  11148. opens and prints, and all kinds of other stuff, over a network.
  11149.  
  11150. If anyone else is doing this kind of stuff, I strongly suggest you get
  11151. Timbuktu, which displays the remote computers screen on your monitor in a
  11152. window), and allows you to control it!
  11153.  
  11154.  
  11155. /==============================\
  11156. | Jeremy P. Howard              |       "Logic must take care of itself."
  11157. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  11158. \==============================/         Tractatus Logico-Philisophicus
  11159. =========================================================================
  11160. Date:         Sat, 12 Nov 1994 18:40:54 -0800
  11161. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11162. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11163. From:         Brian Hall <mspace@NETCOM.COM>
  11164. Subject:      Re: Script Editor Clicking Inaccurate
  11165.  
  11166. >In my case it only happened on a Power Mac (any model) with System 7.5 with
  11167. >the WorldScript Power Adaptor extension loaded. The offset seemed related
  11168. >to the number of style changes in a line of text. Removing the WorldScript
  11169. >Power Adaptor extension solved the problem, but TextEdit is then as slow as
  11170. >hell.
  11171.  
  11172. For what its worth, I saw the same behaviour on a PowerMac that we were
  11173. using for demo purposes at MacWorld.
  11174.  
  11175. __________________________________________________________________________
  11176. Mark/Space Softworks                                    voice 408-293-7299
  11177. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  11178. San Jose, CA 95113                                        bbs 408-293-7290
  11179.  
  11180. Macintosh connectivity software:               Internet: mspace@netcom.com
  11181. Communicate, CTB Tools, PageNOW!                 AppleLink, AOL: MARKSPACE
  11182.                   Goodies at ftp.netcom.com in pub/mspace
  11183. =========================================================================
  11184. Date:         Sun, 13 Nov 1994 04:23:11 +0100
  11185. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11186. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11187. From:         WalrathW <walrathw@RFERL.ORG>
  11188. Subject:      Re: Creating a record with data in FileMaker
  11189.  
  11190. > Anyone have a better way to do the following:
  11191. >
  11192. > tell application "FileMaker Pro"
  11193. >   Create Record At Window "Archiver Database" With Data
  11194. {Var1,var2,var3,etc}
  11195. > end tell
  11196. >
  11197. > THe above works, but Filemaker assigns the variables to seemingly random
  11198.  
  11199. It's not really random, it assigns them in the order that the fields were
  11200. originally created (tab order and placement on the template makes no
  11201. difference).
  11202.  
  11203. -wayne
  11204. =========================================================================
  11205. Date:         Sun, 13 Nov 1994 01:19:04 -0500
  11206. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11207. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11208. From:         "rD>" <u33743@UICVM.UIC.EDU>
  11209. Subject:      My first question...
  11210.  
  11211. Hi all.  I am brand new to the list and to AppleScript.
  11212. Hope you don't mind if I start right off with a scripting question.
  11213.  
  11214. Here is my script:
  11215. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
  11216. global whatsNext
  11217. on run
  11218.         execute FKEY 3
  11219.         tell application "KQ Apple Events"
  11220.                 DoScript =AC
  11221.                         "Open \"Macintosh HD:Picture 1\"
  11222.                 Wait 12 seconds
  11223.                 Menu \"Page Setup=8A\"
  11224.                 Key \"8\"
  11225.                 Key \"0\"
  11226.                 Key Return
  11227.                 Menu \"Print One Copy\"
  11228.                 Menu \"Close\"
  11229.                 Wait 15 seconds
  11230.                 Application \"Finder\""
  11231.         end tell
  11232. end
  11233. on idle
  11234.         if whatsNext is "setup" then
  11235.                 set whatsNext to "pauseDone"
  11236.                 return (60 * 0.5)
  11237.         else
  11238.                 doRest()
  11239.         end if
  11240. end idle
  11241. on doRest()
  11242.         moveFile "Macintosh HD:Picture 1"
  11243.         emptyTrash
  11244. end doRest
  11245. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
  11246. =3D=3D=3D=3D=3D=3D
  11247. What I am attempting here is fairly clear with the script I hope.
  11248. I want a screen shot (am running video input on screen), I want to print
  11249. that screenshot, and then delete that file and have the script start over.
  11250. I want this to run by itself, all day.  The idea is to have the computer
  11251. surveillancing a place with the video in, and provide a print every few
  11252. minutes or so(can I control the time here?).
  11253.  
  11254.  
  11255. The global and the _on idle_ commands I got from someone's advice.
  11256. I have the TAO... and it does not cover these functions, yet in a FAQ I
  11257. read that this book includes the full language.  Apparently not.
  11258. I also read that AS has some stuff that is hard to find out about!
  11259.  
  11260. This script works, but I don't know where to make the repeat loop.
  11261. I have a feeling that the whole thing could be rewritten and made better,
  11262. but this is my first (ambitious) script.
  11263.  
  11264. Any help, suggestions would be greatly appreciated.
  11265.  
  11266. -r
  11267.  
  11268. ___________________________________________________________________
  11269. Do not be greedy, lustful and overly desirous. Be moderate in your needs
  11270. and be content once you reach your goal.
  11271.         --Ni, Hua Ching
  11272.  
  11273. <robert denton>
  11274. <univ. of illinois, chicago>
  11275. <u33743@uicvm.uic.edu>
  11276. =========================================================================
  11277. Date:         Sat, 12 Nov 1994 22:21:44 -0800
  11278. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11279. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11280. From:         Jon Pugh <jonpugh@NETCOM.COM>
  11281. Subject:      Re: MACSCRPT Digest - 10 Nov 1994 to 11 Nov 1994
  11282.  
  11283. >Yeah, Jon, Get a life! ....  ;-)
  11284.  
  11285. I've got one.  I just spent opening day at Squaw Valley amidst a very nice
  11286. snowstorm and plenty of powder.  It's about the only pasttime better than
  11287. hacking.  ;)
  11288.  
  11289. Jon
  11290. =========================================================================
  11291. Date:         Sun, 13 Nov 1994 00:30:21 -0800
  11292. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11293. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11294. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11295. Subject:      Re: Getting bounds of desktop
  11296.  
  11297. At 09:21 10/17/94 (far too long ago), Preston Holmes wrote:
  11298.  
  11299. >I would like to know if it is possible to get the current desktop size
  11300. >using the scriptable finder.  The ultimate goal is to get the screen size.
  11301. >Now I know of several great screen osax that could do this but I would like
  11302. >to have a script that is portable enough to say "requires sys7.5"  Asking
  11303. >non-scripters to go and get large osax packages just for one osax is too
  11304. >much for the non-scripter (IMHO).
  11305.  
  11306. I don't remember whether an answer appeared.  Here's one way:
  11307.  
  11308. tell application "Finder"
  11309.     bounds of container window of desktop
  11310. end tell
  11311.  
  11312.  
  11313. On my machine, this returns {0, 20, 832, 624}
  11314.  
  11315. You would want to check out what it does on a multiple-monitor machine.
  11316.  
  11317.    --John
  11318.  
  11319. --
  11320. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11321. =========================================================================
  11322. Date:         Sun, 13 Nov 1994 16:11:32 +0100
  11323. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11324. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11325. From:         Peter van Aarle <aarle@RUUCJ1.CHEM.RUU.NL>
  11326. Subject:      Re: Tricky problem using date comparison
  11327.  
  11328. >Date:    Fri, 11 Nov 1994 15:37:17 -0800
  11329. >From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11330. >Subject: Re: Tricky problem using date comparison
  11331. >
  11332. >>>This app has its own definition of what
  11333. >>>'date' means and refuses to work.
  11334. >>
  11335. >>I don't have Eudora to see how it handles dates, but I once ran into
  11336. >>something like this with the offset command.  Rather than break up my main
  11337. >>script, I sent the job to a subroutine, which was governed by AppleScript
  11338. >>alone, returning any necessary data (a boolean, in your case) to the main
  11339. >>script.
  11340. >
  11341. >After one quick test in Frontier, in which Eudora 2.0.1 sent me a message's
  11342. >date as the string "Tuesday", I decided I didn't want to deal with that
  11343. >(for today it's a time, for this week its a day name, otherwise its a
  11344. >date/time string).  There may well be an "as ..." phrase one can use to get
  11345. >a known date format from Eudora.
  11346. >
  11347. John, my AppleScripting is up to this yet, but I CAN tell you that the way
  11348. of formatting the message date in Eudora 2.1 is dependent on the settings.
  11349. When you set Eudora to 'Fixed' date setting in the 'Fonts & Display'
  11350. setting, the data will be a normal format (i.e. mm/dd/yy or something).
  11351. The way it is set in your copy is the setting called 'Age-sensitive' under
  11352. the 'Fonts & Display' setting. This is probably VERY difficult to script
  11353. because not only does the date-format change depending on the age of the
  11354. message, but the user can also CHANGE the way theis aging works!
  11355.  
  11356.   Peter van Aarle (aarle@boc.chem.ruu.nl)
  11357. =========================================================================
  11358. Date:         Sun, 13 Nov 1994 10:15:18 -0500
  11359. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11360. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11361. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  11362. Subject:      Re: Creating a record with data in FileMaker
  11363.  
  11364. >Anyone have a better way to do the following:
  11365. >
  11366. >tell application "FileMaker Pro"
  11367. >  Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
  11368. >end tell
  11369. >
  11370. >THe above works, but Filemaker assigns the variables to seemingly random
  11371. >fields within the database. What I'd like to do is to include the field
  11372. >name with the variables so the correct data always goes to the right field,
  11373. >but I can't figure out the syntax for that. As it is now, if you have a
  11374. >bunch of variables, Filemaker seems to do some weird things.
  11375.  
  11376. >Michael Robertson - MR Mac         (619) 534-5107 office
  11377. >Macintosh Business Consultant      (619) 989-8943 pager
  11378. >San Diego Supercomputer Ctr.       (619) 534-5152 fax
  11379. >
  11380. >Internet, America Online           robertso@sdsc.edu
  11381. >_____________________________________________________________________________
  11382.  
  11383. Try this:
  11384.  
  11385. Tell application "Filemaker Pro"
  11386. Create new record at database "Archiver Database"
  11387. set currentRecord to current record of database "Archiver Database"
  11388. set cell "Name" of currentRecord to "Mark"
  11389. set cell "Address" of currentRecord to "hadfield@sickkids.on.ca"
  11390. .
  11391. .
  11392. .
  11393. end tell
  11394.  
  11395. That should do it I hope!
  11396.  
  11397. Mark Hadfield
  11398. hadfield@sickkids.on.ca
  11399. The Hospital For Sick Children
  11400. =========================================================================
  11401. Date:         Sun, 13 Nov 1994 10:16:56 -0600
  11402. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11403. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11404. From:         "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
  11405. Subject:      Re: Creating a record with data in FileMaker
  11406.  
  11407. In message <199411131516.JAA18279@boombox.micro.umn.edu> Macintosh Scripting
  11408. Systems writes:
  11409. > >Anyone have a better way to do the following:
  11410. > >
  11411. > >tell application "FileMaker Pro"
  11412. > >  Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
  11413. > >end tell
  11414. > >
  11415. > >THe above works, but Filemaker assigns the variables to seemingly random
  11416. > >fields within the database.
  11417. >
  11418. > Try this:
  11419. >
  11420. > Tell application "Filemaker Pro"
  11421. > Create new record at database "Archiver Database"
  11422. > set currentRecord to current record of database "Archiver Database"
  11423. > set cell "Name" of currentRecord to "Mark"
  11424. > set cell "Address" of currentRecord to "hadfield@sickkids.on.ca"
  11425.  
  11426. This method works, but it is so slow it is unusable.  On my Powerbook 165c,
  11427. this took about five seconds PER CELL.  Is there something else one
  11428. can do to improve the execution speed?
  11429.  
  11430.  
  11431. Stephen E. Collins   <URL:http://www.micro.umn.edu/staff/sec>
  11432. University of Minnesota             sec@boombox.micro.umn.edu
  11433. Distributed Computing Services   (612) 625-1300 Fax: 625-6817
  11434.  
  11435.             Remember to give back to the net.
  11436. =========================================================================
  11437. Date:         Sun, 13 Nov 1994 12:09:34 -0500
  11438. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11439. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11440. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  11441. Subject:      Re: Creating a record with data in FileMaker
  11442. In-Reply-To:  <no.id> from "Stephen E. Collins" at Nov 13, 94 10:16:56 am
  11443.  
  11444. --Stephen E. Collins wrote:
  11445. >
  11446. >This method works, but it is so slow it is unusable.  On my Powerbook 165c,
  11447. >this took about five seconds PER CELL.  Is there something else one
  11448. >can do to improve the execution speed?
  11449.  
  11450.     Which version of FMP are you using. 2.1v3 is much faster at handling
  11451. Apple Event calls than previous versions. I'm pretty sure it's a free
  11452. upgrade from any version of 2.0.
  11453.  
  11454. -Hades
  11455. =========================================================================
  11456. Date:         Sun, 13 Nov 1994 09:57:14 PST
  11457. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11458. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11459. From:         David Jokinen <GroundZero@EWORLD.COM>
  11460. Subject:      Re: Creating a record with data in FileMaker
  11461.  
  11462. >> Anyone have a better way to do the following:
  11463. >>
  11464. >> tell application "FileMaker Pro"
  11465. >>   Create Record At Window "Archiver Database" With Data
  11466. {Var1,var2,var3,etc}
  11467. >> end tell
  11468. >>
  11469. >> THe above works, but Filemaker assigns the variables to seemingly random
  11470.  
  11471. >It's not really random, it assigns them in the order that the fields were
  11472. >originally created (tab order and placement on the template makes no
  11473. >difference).
  11474.  
  11475. Wayne's right. Open your Define Fields dialog and set the popup menu in the
  11476. upper-right corner to read "creation order." That's the order you have to
  11477. deal with. Often, this order is a mess if you've been developing the database
  11478. over a long time. There is no easy fix. Either duplicate, rename and delete
  11479. the fields until they make sense, or start over from scratch and re-import
  11480. the data.
  11481.  
  11482. Hint: If you "tell" Layout 0, you can deal with the raw, unformatted data
  11483. from every field in the database. This is usually what you want. For
  11484. instance, here's the masochist's way to duplicate the current record:
  11485. ***
  11486. tell application "FileMaker Pro"
  11487.     tell Layout 0 of Database "FooBar"
  11488.         get every Cell
  11489.         Create New Record With Data result
  11490.     end tell
  11491. end tell
  11492. ***
  11493. David Jokinen
  11494. Ground Zero Software
  11495. =========================================================================
  11496. Date:         Sun, 13 Nov 1994 13:35:28 EST
  11497. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11498. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11499. From:         "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
  11500. Subject:      MS: Monthly Mailing
  11501.  
  11502. [ I will be on vacation all this week so it is even more crucial than ever
  11503. that you use "macscript-request@dartmouth.edu" for when you need to ask a
  11504. human a question vs. writing to me directly. I will not see your mail for a
  11505. week. Fred WILL *IF* you send it to the address I just listed. -ajw]
  11506.  
  11507. Save this mail message. It includes all the e-mail addresses you need when
  11508. dealing with the Mac Scripting mailing list.
  11509.  
  11510. *** To Unsubscribe from this list:
  11511.  
  11512. Send to: LISTSERV@dartmouth.edu
  11513. Subject: unsubscribe
  11514. Message: signoff macscrpt
  11515.  
  11516.  
  11517. *** To subscribe to this list:
  11518.  
  11519. Send to: LISTSERV@dartmouth.edu
  11520. Subject: subscribe
  11521. Message: subscribe macscrpt <your full name here>
  11522.  
  11523.  
  11524. *** To receive the mail as daily digest:
  11525.  
  11526. Send to: LISTSERV@dartmouth.edu
  11527. Subject: digest
  11528. Message: set macscrpt digest
  11529.  
  11530.  
  11531. *** To get other info on using this automated system:
  11532.  
  11533. Send to: LISTSERV@dartmouth.edu
  11534. Subject: help
  11535. Message: help
  11536.  
  11537.  
  11538. *** To ask the human moderators a question:
  11539.  
  11540. Send to: MacScripting-Request@dartmouth.edu
  11541. [Do NOT send mail directly to Fred Terry or Andy Williams!]
  11542.  
  11543.  
  11544. *** To send a message to the mailing list:
  11545.  
  11546. Send to: MacScripting@dartmouth.edu
  11547.  
  11548.  
  11549. Thanks.
  11550.  
  11551. -The Moderators (a very offcial way of saying "Fred & Andy")
  11552. =========================================================================
  11553. Date:         Sat, 12 Nov 1994 21:20:30 -0600
  11554. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11555. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11556. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  11557. Subject:      Re: Creating a record with data in FileMaker
  11558.  
  11559. If you specify Layout 0 as your object containment the fields will be filled
  11560. in creation order, i.e., the oldest through the newest. This is somewhat
  11561. complicated by having calculated fields between values to be filled, but I've
  11562. had some success specifying those as "". Another reason why I've started
  11563. leaving a few undefined data fields (for future uses) before I add
  11564. calculation fields.
  11565.  
  11566. Dennis L. Whiteman
  11567. THE ULTIMATE FREELANCER
  11568.  
  11569.  ------ From: Macintosh Scripting Systems, Sat, Nov 12, 1994 ------
  11570.  
  11571. Anyone have a better way to do the following:
  11572.  
  11573. tell application "FileMaker Pro"
  11574.   Create Record At Window "Archiver Database" With Data {Var1,var2,var3,etc}
  11575. end tell
  11576.  
  11577. THe above works, but Filemaker assigns the variables to seemingly random
  11578. fields within the database. What I'd like to do is to include the field
  11579. name with the variables so the correct data always goes to the right field,
  11580. but I can't figure out the syntax for that. As it is now, if you have a
  11581. bunch of variables, Filemaker seems to do some weird things.
  11582.  
  11583.  
  11584.  
  11585. -- Michael
  11586. =========================================================================
  11587. Date:         Sat, 12 Nov 1994 21:22:27 -0600
  11588. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11589. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11590. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  11591. Subject:      Re(2): diff of a date
  11592.  
  11593. "Me" does refer to the script that's running whether its a compiled script,
  11594. applet or droplet.
  11595.  
  11596. Dennis L. Whiteman
  11597. THE ULTIMATE FREELANCER
  11598.  
  11599.  ------ From: Macintosh Scripting Systems, Sat, Nov 12, 1994 ------
  11600.  
  11601. "Me" refers to the current script application. If it's a compiled script I
  11602. think
  11603.  it
  11604. refers to the front application (ie. the Script Editor if you click the
  11605. 'Run' button). I'm not sure about this though.
  11606. =========================================================================
  11607. Date:         Sun, 13 Nov 1994 13:24:03 -0600
  11608. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11609. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11610. From:         Fred Terry <pfterry@LKS.CSI.COM>
  11611. Subject:      Re: SUBSCRIBE
  11612. In-Reply-To:  Your message of "Sat, 12 Nov 94 23:49:09 +1200"
  11613.  
  11614. You have been added to the Nisus mailing list. If you want to
  11615. unsubscribe in the future, send the message
  11616.  
  11617. unsubscribe nisus your name
  11618.  
  11619. to the address listserv@gaea.kgs.ukans.edu
  11620.  
  11621. To post messages to the list, send them to nisus@gaea.kgs.ukans.edu.
  11622.  
  11623. If more than one message bounces from your mailbox, you will be
  11624. removed from the mailing list. Since more and more commercial
  11625. electronic services are offering Internet gateways, we really
  11626. can't afford bounces. Some subscribers pay for Internet mail out
  11627. of their own pockets, and I don't want them to pay for "junk"
  11628. mail.
  11629.  
  11630. There is also an anonymous ftp site associated with the list on
  11631. gaea. Check the nisus directory for updaters and information.
  11632.  
  11633. Welcome.
  11634. =========================================================================
  11635. Date:         Sun, 13 Nov 1994 11:45:06 -0800
  11636. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11637. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11638. From:         Kee Nethery <kee@KAGI.COM>
  11639. Subject:      I see troubles
  11640.  
  11641. did the macscripting mailing list just get subscribed to the nisus mailing list?
  11642. Kee
  11643.  
  11644. >You have been added to the Nisus mailing list. If you want to
  11645. >unsubscribe in the future, send the message
  11646. >
  11647. >unsubscribe nisus your name
  11648. >
  11649. >to the address listserv@gaea.kgs.ukans.edu
  11650. >
  11651. >To post messages to the list, send them to nisus@gaea.kgs.ukans.edu.
  11652. >
  11653. >If more than one message bounces from your mailbox, you will be
  11654. >removed from the mailing list. Since more and more commercial
  11655. >electronic services are offering Internet gateways, we really
  11656. >can't afford bounces. Some subscribers pay for Internet mail out
  11657. >of their own pockets, and I don't want them to pay for "junk"
  11658. >mail.
  11659. >
  11660. >There is also an anonymous ftp site associated with the list on
  11661. >gaea. Check the nisus directory for updaters and information.
  11662. >
  11663. >Welcome.
  11664.  
  11665. _______________________________________________________________
  11666. Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
  11667. =========================================================================
  11668. Date:         Sun, 13 Nov 1994 11:53:52 -0800
  11669. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11670. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11671. From:         Mike Cohen <isis@NETCOM.COM>
  11672. Subject:      Re: Creating a record with data in FileMaker
  11673.  
  11674. At 9:57 AM 11/13/94, David Jokinen wrote:
  11675. >>> Anyone have a better way to do the following:
  11676. >>>
  11677. >>> tell application "FileMaker Pro"
  11678. >>>   Create Record At Window "Archiver Database" With Data
  11679. >{Var1,var2,var3,etc}
  11680. >>> end tell
  11681. >>>
  11682. >>> THe above works, but Filemaker assigns the variables to seemingly random
  11683. >
  11684. >>It's not really random, it assigns them in the order that the fields were
  11685. >>originally created (tab order and placement on the template makes no
  11686. >>difference).
  11687. >
  11688. >Wayne's right. Open your Define Fields dialog and set the popup menu in the
  11689. >upper-right corner to read "creation order." That's the order you have to
  11690. >deal with. Often, this order is a mess if you've been developing the database
  11691. >over a long time. There is no easy fix. Either duplicate, rename and delete
  11692. >the fields until they make sense, or start over from scratch and re-import
  11693. >the data.
  11694. >
  11695. I thought it used "custom order", which defaults to the same as "creation
  11696. order", although I haven't tried changing that to see if it works.
  11697.  
  11698. _______________________________________________________________
  11699. Mike Cohen           | ISIS International
  11700. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  11701. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  11702. Home Page: ftp://ftp.netcom.com/pub/isis/home.html
  11703. =========================================================================
  11704. Date:         Sun, 13 Nov 1994 14:12:25 CST
  11705. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11706. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11707. From:         Scott Guthery <guthery@AUSTIN.SAR.SLB.COM>
  11708. Subject:      FMP and MacHTTPD
  11709.  
  11710. Has anybody written a hamster to connect MacHTTPD to FileMaker Pro for doing
  11711. something simple like returning records with a field that contains and entry
  11712. in a HTML form?
  11713. =========================================================================
  11714. Date:         Sun, 13 Nov 1994 14:16:16 -0600
  11715. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11716. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11717. From:         "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
  11718. Subject:      Re: I see troubles
  11719.  
  11720. In message <199411131951.NAA23625@boombox.micro.umn.edu> Kee Nethery:
  11721. > did the entire macscripting mailing list just get subscribed to the
  11722. > nisus mailing list?
  11723. >
  11724. > >You have been added to the Nisus mailing list. If you want to
  11725. > >unsubscribe in the future, send the message
  11726.  
  11727. It would so appear.  I hope this is an error on someone's part, and that
  11728. it gets corrected VERY soon.
  11729.  
  11730. Stephen E. Collins   <URL:http://www.micro.umn.edu/staff/sec>
  11731. University of Minnesota             sec@boombox.micro.umn.edu
  11732. Distributed Computing Services   (612) 625-1300 Fax: 625-6817
  11733.  
  11734.             Remember to give back to the net.
  11735. =========================================================================
  11736. Date:         Sun, 13 Nov 1994 14:26:02 -0600
  11737. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11738. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11739. From:         "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
  11740. Subject:      Re: FMP and MacHTTPD
  11741.  
  11742. In message <199411132016.OAA24106@boombox.micro.umn.edu> Macintosh Scripting
  11743. Systems writes:
  11744. > Has anybody written a hamster to connect MacHTTPD to FileMaker Pro for doing
  11745. > something simple like returning records with a field that contains and entry
  11746. > in a HTML form?
  11747.  
  11748. I'm working on such a critter.  You can find a beta version on the
  11749. Web66 SharePages: http://web66.coled.umn.edu/
  11750.  
  11751. This has also been a topic of recent discussion on the MacHTTP mailing
  11752. list.  You might want to subscribe to it and browse through the
  11753. archives.  See the MacHTTP home page for more info:
  11754. http://www.uth.tmc.edu/mac_info/machttp_info.html
  11755.  
  11756.  
  11757. Stephen E. Collins   <URL:http://www.micro.umn.edu/staff/sec>
  11758. University of Minnesota             sec@boombox.micro.umn.edu
  11759. Distributed Computing Services   (612) 625-1300 Fax: 625-6817
  11760.  
  11761.             Remember to give back to the net.
  11762. =========================================================================
  11763. Date:         Mon, 14 Nov 1994 10:25:00 +1300
  11764. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11765. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11766. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  11767.               NZ" <LDO@WAIKATO.AC.NZ>
  11768. Subject:      Re: "Get Terminology" event question
  11769.  
  11770. Jon Pugh <jonpugh@NETCOM.COM> taps out:
  11771.  
  11772. >Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
  11773. >>
  11774. >>I don't think I've got a proper understanding of how the AppleScript
  11775. >>"get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
  11776. >>is a document called "AppleScript Suite". This describes the get terminology
  11777. >>event, but doesn't say that there are any parameters for it. So how do you
  11778. >>specify what language code and script code you want the terminology for?
  11779. >
  11780. >The direct parameter is a long which describes what language you want the
  11781. >terminology in.  Basically, it is simply the script code shifted left 8
  11782. >bits with the country code added into the low byte.  This is,
  11783. >coincidentally, the resource id of the aete that you want.
  11784.  
  11785. Thanks, Jon! That sounds like just what I need!
  11786.  
  11787. To the person who suggested I use the ASDebugging.OSAGetAppTerminology call:
  11788. I would rather not, as I imagine this would force me to follow the AppleScript
  11789. behaviour of launching the application to get its terminology, if the 'scsz'
  11790. resource setting demands this. I'd rather put the choice of whether to do this
  11791. in the hands of the scriptor.
  11792.  
  11793. Of course, this suggests that I should provide some way of letting the scriptor
  11794. know that launching the application to get its terminology would be the
  11795. preferred thing to do...
  11796.  
  11797. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  11798. Computer Services Dept                     fax: +64-7-838-4066
  11799. University of Waikato            electric mail: ldo@waikato.ac.nz
  11800. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  11801. =========================================================================
  11802. Date:         Sun, 13 Nov 1994 17:43:09 -0500
  11803. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11804. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11805. From:         Madness Caleb Welton <Caleb_Welton@POSTOFFICE.BROWN.EDU>
  11806. Organization: Brown University -- Providence, Rhode Island  USA
  11807. Subject:      Creating a Log?
  11808.  
  11809.   I appologise if this is perhaps a stupid question.  But is there anyway
  11810. applescript (or anything else for that matter), could be used to create a
  11811. form of log for Appleshare?  All it would really need to be able to do is
  11812. monitor to see if and what things are being copied, then save that
  11813. information to a file.  It seems like it _should_ be possible on some
  11814. level, Appleshare itself needs to be recieving and sending various calls,
  11815. yes?  And all you'd need to do is find out what they are...   But then,
  11816. I'm new to applescript, and don't yet have a feel for it's limitations.
  11817. Any comments?  Am I totally crazy?
  11818.  
  11819. --Madness (Caleb Welton)
  11820. =========================================================================
  11821. Date:         Sun, 13 Nov 1994 17:29:36 -0800
  11822. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11823. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11824. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  11825. Subject:      Re: Tricky problem using date comparison
  11826.  
  11827. At 07:11 11/13/94, Peter van Aarle wrote:
  11828. >John, my AppleScripting is up to this yet, but I CAN tell you that the way
  11829. >of formatting the message date in Eudora 2.1 is dependent on the settings.
  11830. >When you set Eudora to 'Fixed' date setting in the 'Fonts & Display'
  11831. >setting, the data will be a normal format (i.e. mm/dd/yy or something).
  11832. >The way it is set in your copy is the setting called 'Age-sensitive' under
  11833. >the 'Fonts & Display' setting. This is probably VERY difficult to script
  11834. >because not only does the date-format change depending on the age of the
  11835. >message, but the user can also CHANGE the way theis aging works!
  11836.  
  11837. Ah...of course.
  11838.  
  11839. I haven't been scripting Eudora much (I have ONE script in Eudora's folder
  11840. for OSA Menu, which queues a message to my provider's robot asking for
  11841. month-to-date usage).
  11842.  
  11843. Until USWest figures out how to connect (206)437 reliably all 12
  11844. (straight-line, more like 16 as the cable runs) miles to Port Townsend, I
  11845. have little incentive to script Eudora, since it takes several retries on
  11846. average to establish a good connection greater than 2400 baud.
  11847.  
  11848.    --John
  11849.  
  11850. --
  11851. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  11852. =========================================================================
  11853. Date:         Sun, 13 Nov 1994 22:33:52 -0800
  11854. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11855. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11856. From:         Jon Pugh <jonpugh@NETCOM.COM>
  11857. Subject:      Re: "Get Terminology" event question
  11858.  
  11859. >Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
  11860. >
  11861. >To the person who suggested I use the ASDebugging.OSAGetAppTerminology call:
  11862.  
  11863. It is important for anyone using this call to remember that it can return a
  11864. purgeable handle if the aete resource is purgeable.  In the short term aete
  11865. resources shouldn't be marked purgeable but many are (Hypercard and
  11866. PhotoFlash both are).  Some future release of AppleScript might fix this.
  11867.  
  11868. Jon
  11869. =========================================================================
  11870. Date:         Sun, 13 Nov 1994 23:07:40 -0800
  11871. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11872. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11873. From:         "Alex L. Bangs" <bangs@NETCOM.COM>
  11874. Subject:      Lessons Learned--So Far
  11875.  
  11876. I've been working with AppleScript for just a little while, but I had some
  11877. observations that I've made so far which might be useful to other new
  11878. folks. Here goes:
  11879.  
  11880. * I started with the Complete AppleScript Handbook...its an ok book, has
  11881. some good samples, but it really has a crappy index.
  11882.  
  11883. * I bought the AppleScript SDK from APDA--If you don't have it and wonder
  11884. what's in it, here's what you get for $200 (BTW, I've seen something for
  11885. $150 from MacWarehouse. Not sure what it is, but I'd guess it's different):
  11886.  - all of the Apple language manuals, including the ones for scripting
  11887. additions and the finder
  11888.  - FaceSpan software and manual; has to do with interfaces, I know little
  11889. else (although I know others here are doing FaceSpan stuff)
  11890.  - Scriptable finder (if you don't already have Sys 7.5)
  11891.  - a CD ROM with samples plus some relevant develop articles and the two
  11892. volumes of Inside Mac related to AppleScript (Component Manager and IAC)
  11893.  - most importantly (for me), a redistribution license for packaging
  11894. AppleScript with a product you intend to distribute. This is easily worth
  11895. the $200, if you want to distribute a product w/AppleScript, inside or
  11896. outside your company. This license does not include the scriptable finder,
  11897. unfortunately (as far as I can tell from reading it).
  11898.  
  11899. * BEWARE WORKING WITH EXCEL 4 AND 5 TOGETHER WITH APPLESCRIPT!
  11900. I've been developing AppleScripts for use with a custom C++ application and
  11901. Excel 4 & 5. Excel 5 has a very different aete from Excel 4, and it has
  11902. some nasty tricks. First, it appears to have its own "Open" and "Activate"
  11903. events. Excel 4 has the standard "open" event, but it is different from the
  11904. Excel 5 "Open" event, and AppleScript cannot tell the difference since it
  11905. caches the aete and gets confused about which app it is talking to. I ended
  11906. up with three choices on dealing with this:
  11907.  - develop the scripts with Excel 4 only, don't allow the distribution
  11908. version of the script to get exposed to Excel 5. It will work with Excel 5,
  11909. but once exposed, AppleScript will change it to the new format which Excel
  11910. 4 will no longer understand.
  11911.  - use the activate command outside of the 'tell Excel' loop, and tell
  11912. Excel to open its own files via Execute "OPEN()". This is the route I have
  11913. chosen, since I want to be able to flip back and forth between versions of
  11914. Excel while developing.
  11915.  - call the open appleevent by using the literal syntax in AppleScript.
  11916. This involves using << >> to do something, but I haven't gotten the details
  11917. on that yet. I may switch to using that for the open call, since it turns
  11918. out that OPEN() and AppleScript's open don't behave the same in Excel.
  11919.  
  11920. Just takes seeing how Microsoft did this to remind me how much of a pain in
  11921. the butt their products are to work with.
  11922.  
  11923. * I've been running the scripts I use directly from my app using OSAExecute
  11924. and OSAExecuteEvent (the latter lets me run a script and send an open
  11925. event, so I can pass in a file). Now we all know that AppleScript has this
  11926. nice little way of asking where an app is if you move the script to another
  11927. machine, and it stores this somewhere or another. Unfortunately, if you run
  11928. the script directly yourself, it has no way to save this information. So I
  11929. now save the script after execution and it now is able to properly cache
  11930. and save the data.
  11931.  
  11932. Happy Scripting,
  11933.  
  11934. Alex L. Bangs
  11935. bangs@netcom.com/work (415) 854-9000/home (415) 966-8377
  11936. =========================================================================
  11937. Date:         Mon, 14 Nov 1994 01:54:13 -0800
  11938. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11939. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11940. From:         "Glenn L. Austin" <glenn_a@EFN.ORG>
  11941. Subject:      Re: Getting bounds of desktop
  11942.  
  11943. John W. Baxter wrote:
  11944. >At 09:21 10/17/94 (far too long ago), Preston Holmes wrote:
  11945. >>I would like to know if it is possible to get the current desktop size
  11946. >>using the scriptable finder.  The ultimate goal is to get the screen size.
  11947. >>Now I know of several great screen osax that could do this but I would like
  11948. >>to have a script that is portable enough to say "requires sys7.5"  Asking
  11949. >>non-scripters to go and get large osax packages just for one osax is too
  11950. >>much for the non-scripter (IMHO).
  11951. >
  11952. >I don't remember whether an answer appeared.  Here's one way:
  11953. >
  11954. >tell application "Finder"
  11955. >    bounds of container window of desktop
  11956. >end tell
  11957. >
  11958. >
  11959. >On my machine, this returns {0, 20, 832, 624}
  11960. >
  11961. >You would want to check out what it does on a multiple-monitor machine.
  11962.  
  11963. Two monitor machine, left 640x480 menubar, right 640x480
  11964.  
  11965. reply:
  11966. {0, 0, 1280, 480}
  11967.  
  11968. No list of monitors, just the bounds of the GrayRgn.
  11969.  
  11970. //
  11971. // Glenn L. Austin
  11972. // Computer Wizard and Racing Car Driver
  11973. // Internet:  glenn_a@efn.org
  11974. //
  11975. =========================================================================
  11976. Date:         Mon, 14 Nov 1994 10:53:48 +0100
  11977. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11978. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  11979. From:         WalrathW <walrathw@RFERL.ORG>
  11980. Subject:      Re: "Get Terminology" event question
  11981.  
  11982. > It is important for anyone using this call to remember that it can return a
  11983. > purgeable handle if the aete resource is purgeable.  In the short term aete
  11984. > resources shouldn't be marked purgeable but many are (Hypercard and
  11985. > PhotoFlash both are).  Some future release of AppleScript might fix this.
  11986.  
  11987. While on the subject, I noticed something I thought was kind of odd over the
  11988. weekend. I have a background only scriptable app. I was sending it some
  11989. events from a script running on another machine across the network, and at
  11990. the same time snooping through the app's memory with Zone Ranger. All of a
  11991. sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
  11992. don't support the get terminology event though. Is it possible that the
  11993. System, or the AppleEvent manager loaded this thing into MY heap? After that
  11994. I went and marked the thing purgeable since if it was going to be happening
  11995. on a regular basis, without me knowing, I didn't want it hanging around when
  11996. I needed the memory for something else. But Jon is saying I shouldn't mark it
  11997. purgeable.
  11998.  
  11999. What's the story here?
  12000.  
  12001.   -wayne
  12002. =========================================================================
  12003. Date:         Mon, 14 Nov 1994 10:57:21 +0100
  12004. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12005. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12006. From:         WalrathW <walrathw@RFERL.ORG>
  12007. Subject:      Re: Creating an (AppleShare) Log?
  12008.  
  12009. >   I appologise if this is perhaps a stupid question.  But is there anyway
  12010. > applescript (or anything else for that matter), could be used to create a
  12011. > form of log for Appleshare?  All it would really need to be able to do is
  12012. > monitor to see if and what things are being copied, then save that
  12013. > information to a file.  It seems like it _should_ be possible on some
  12014. > level, Appleshare itself needs to be recieving and sending various calls,
  12015. > yes?  And all you'd need to do is find out what they are...   But then,
  12016. > I'm new to applescript, and don't yet have a feel for it's limitations.
  12017. > Any comments?  Am I totally crazy?
  12018.  
  12019. APDA sells an API for monitoring and controlling AppleShare activity.
  12020.  
  12021.   -wayne
  12022. =========================================================================
  12023. Date:         Mon, 14 Nov 1994 11:19:49 +0100
  12024. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12025. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12026. From:         WalrathW <walrathw@RFERL.ORG>
  12027. Subject:      Re: Get a life, Jon.
  12028.  
  12029. > >Yeah, Jon, Get a life! ....  ;-)
  12030. >
  12031. > I've got one.  I just spent opening day at Squaw Valley amidst a very nice
  12032. > snowstorm and plenty of powder.  It's about the only pasttime better than
  12033. > hacking.  ;)
  12034.  
  12035. But you undoubtedly took your PB with you, didn't you, just in case you
  12036. couldn't find any action in the bars!  ;-)  I remember an old message you
  12037. sent where you were sitting in a bar watching the SuperBowl and working on
  12038. your popup menu XCMD....  I've hacked on planes, in parks, and moving
  12039. vehicles (when someone else was driving), but not yet in a bar. That would
  12040. surely blow my cover! :)
  12041.  
  12042. -wayne
  12043. =========================================================================
  12044. Date:         Mon, 14 Nov 1994 05:25:52 -0500
  12045. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12046. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12047. From:         Kiran Wagle <groo@NETCOM.COM>
  12048. Subject:      Re: Tricky problem using date comparison
  12049.  
  12050. Michael Robertson <robertso@SDSC.EDU> writes:
  12051.  
  12052. MR> This does not work:
  12053. MR> tell application "Eudora"
  12054. MR>     set TheDate to date of message x of mailbox boxToCheck of mail folder ""
  12055.  
  12056. MR> Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
  12057. MR> using Eudora's definition of the term 'date' and not Applescripts.
  12058.  
  12059. On 11/13/94, Peter van Aarle opined:
  12060.  
  12061. Pv> When you set Eudora to 'Fixed' date setting in the 'Fonts & Display'
  12062. Pv> setting, the data will be a normal format (i.e. mm/dd/yy or something).
  12063. Pv> The way it is set in your copy is the setting called 'Age-sensitive' under
  12064. Pv> the 'Fonts & Display' setting. This is probably VERY difficult to script
  12065.  
  12066. The dictionary says that the property "date" of class "message" is "the
  12067. date as appearing in the message summary".  (And this is correct.)
  12068.  
  12069. In order to get the date in the form the sender's mailer sent, you have to
  12070.  
  12071. get field "date:" of message <mumble>
  12072.  
  12073. and hope it's an RFC 822 compliant format.
  12074.  
  12075. This *is* a bit weird when dates are age-sensitive.
  12076.  
  12077. ~ Kiran
  12078.  
  12079. --
  12080. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  12081. =========================================================================
  12082. Date:         Mon, 14 Nov 1994 08:54:18 -0500
  12083. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12084. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12085. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  12086. Subject:      Re: Creating a record with data in FileMaker
  12087. In-Reply-To:  <no.id> from "Mike Cohen" at Nov 13, 94 11:53:52 am
  12088.  
  12089. --Mike Cohen wrote:
  12090. >
  12091. >I thought it used "custom order", which defaults to the same as "creation
  12092. >order", although I haven't tried changing that to see if it works.
  12093.  
  12094.     The only time custom order and creation order are the same is when
  12095. you move a field in the field definitions dialog box and then move it
  12096. back to its original position.
  12097.  
  12098. -Hades
  12099. =========================================================================
  12100. Date:         Mon, 14 Nov 1994 08:57:44 -0500
  12101. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12102. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12103. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  12104. Subject:      Accessing the OSA from C
  12105.  
  12106. OK, I see the book on how to do the OSACompile and all that.
  12107.  
  12108. How do I check if these traps are available? There doesn't seem to be a
  12109. Gestalt selector for same, nor can I find a way of checking directly.
  12110.  
  12111. _Deirdre
  12112. =========================================================================
  12113. Date:         Mon, 14 Nov 1994 09:33:11 -0500
  12114. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12115. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  12116. From:         system@MAIL1.WYETH.COM
  12117. Subject:      Service Message
  12118.  
  12119. --Boundary (ID 5/xWJ6/exZHg8zIb/e4iWg)
  12120. Content-type: TEXT/REPORT
  12121.  
  12122. Report on your message to: /U=Unknown/@mr.wyeth.com
  12123. Reason: Unable to transfer; message formatting problem (1)
  12124. Diagnostic: Maximum time expired (5)
  12125. Supplementary information: Message was undeliverable to Microsoft mail.  Error
  12126.  confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  12127. Arrival-date: Fri, 11 Nov 1994 23:01:13 EST
  12128.  
  12129. --Boundary (ID 5/xWJ6/exZHg8zIb/e4iWg)
  12130. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  12131.  
  12132. From: Systems, Macintosh S
  12133. Date: Fri, Nov 11, 1994 11:01 PM
  12134. Subject: MACSCRPT Digest - 10 Nov 1994 to 11 Nov 1994
  12135. To: Doherty, John; Mobilio, Dominick; Sabatucci, Joe
  12136. File(s): Attach.Txt1
  12137.  
  12138. Regarding Message ID : 83500021114991/578230@MAIL1
  12139. From: NAME: Macintosh Scripting Systems
  12140. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  12141. Author: NAME: Automatic digest processor
  12142. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
  12143. To: NAME: Recipients of MACSCRPT digests
  12144. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  12145.  
  12146. Date      : 11-NOV-1994 23:01:13.00
  12147. There are 33 messages totalling 1205 lines in this issue.
  12148.  
  12149. Topics of the day:
  12150.  
  12151.   1. GNU diff droplet
  12152.   2. Scripting WindowShade (2)
  12153.   3. "Get Terminology" event question
  12154.   4. Multiple source files?
  12155.   5. Tricky problem using date comparison (5)
  12156.   6. OSAXen DB (2)
  12157.   7. MacPGP scripts? (2)
  12158.   8. String to Record Class (5)
  12159.   9. Script Editor Clicking Inaccurate (6)
  12160.  10. Eudora "SaveAs" and other menues
  12161.  11. MACSCRPT Digest - 9 Nov 1994 to 10 Nov 1994
  12162.  12. Eudora script upload (2)
  12163.  13. Scriptable Telnet App?
  12164.  14. Idle time in FaceSpan Application (2)
  12165.  15. Microphone Script help needed
  12166.  
  12167. ----------------------------------------------------------------------
  12168.  
  12169. Date:    Fri, 11 Nov 1994 01:13:51 -0500
  12170. From:    Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
  12171. Subject: Re: GNU diff droplet
  12172.  
  12173. Fred Terry <pfterry@lks.csi.com> wrote:
  12174. > Tom Pollard has contributed a GNU diff droplet script that I have moved into
  12175. >
  12176. > ftp://gaea.kgs.ukans.edu/applescript/scripts/GNU_diff.sit.hqx
  12177. >
  12178. [...]
  12179. > file-comparison utility. Be sure to read the Read Me file.
  12180.  
  12181. Since it's not archived on gaea separately, here's a copy of the Read
  12182. Me, to give you a better idea of whether this package is going to be
  12183. useful to you or not.  I've been using it in more or less its present
  12184. form for the last six or seven months, now.
  12185.  
  12186. Cheers,
  12187.  
  12188. Tom
  12189.  
  12190.  
  12191. -----------------------------------------
  12192. AppleScript/QuicKeys droplet for GNU diff
  12193. -----------------------------------------
  12194.  
  12195. "GNU diff" is an AppleScript droplet that acts as a "user-friendly"
  12196. wrapper for "diff", the Unix file-comparison utility.  QuicKeys 3.0
  12197. is used to drive the actual application.  A number of Applescript
  12198. extensions are used, in particular the "Regular Expressions" and "Choose
  12199. Files & Folders" extensions from Mark Alldritt's Script Tools Suite.
  12200.  
  12201. --- Installation
  12202.  
  12203. To use "GNU Diff", it's only necessary that the "GNU Diff" droplet is in
  12204. the same folder as the rsrcs folder, which holds the "diff" application,
  12205. the dialog window definition and the on-line help file.  Also, make sure
  12206. that you've installed required scripting additions.  The Script Tools
  12207. Suite is available from many places, including the info-mac archives and
  12208. the scripting archives at 'gaea.kgs.ukans.edu'.  You'll probably want to
  12209. put an alias of the GNU diff droplet somewhere where it's easy to drop
  12210. files on it.
  12211.  
  12212. --- Why?
  12213.  
  12214. I put this together because I know of no other drop-launchable
  12215. application that reports the differences between two files or two
  12216. folders.  The available shareware/freeware utilities (Compare-0.9,
  12217. Compare-All, TCXDiff) all have interfaces that are awkward to use for
  12218. multiple file comparisons.  Also, I like and understand the format in
  12219. which "diff" reports its results, but none of the other applications
  12220. supports this.
  12221.  
  12222. --- Description
  12223.  
  12224. "Diff" is a simple port of the corresponding Gnu utility to the Mac by
  12225. Timothy Murphy of Trinity College Dublin <tim@maths.tcd.ie>; it and its
  12226. source code are ftpable from ftp.maths.tcd.ie.  It's based on version
  12227. 2.0 of "diff".  While functional, its only user interface is
  12228. unfortunately the Think C console i/o dialog. :-(  This means, for
  12229. instance, that the input file names have to be typed in to the dialog
  12230. window, with full path names if they're in a different directory from
  12231. the application!
  12232.  
  12233. My Applescript droplet hides this abomination by offering a drop-launch
  12234. interface and a (more) friendly dialog for specifying the input and
  12235. output files and the command line options.  QuicKeys is used to launch
  12236. the actual application and paste in the command-line arguments that were
  12237. prepared by Applescript.  I think it's a good example of how the two
  12238. systems can be used together to script otherwise unscriptable apps.
  12239.  
  12240. Although it could be improved, it's now possible to get the diffs of two
  12241. files (a control file and a comparison file) by dropping them on the
  12242. "GNU diffs" app.  There's an option to switch the order of the file
  12243. arguments; this is useful since you don't have any control of the order
  12244. in which the files are given to the app when drop-launching.  I haven't
  12245. tested all of the many features of the underlying Unix application, but
  12246. those I have tried seem to do what you'd expect them to.
  12247.  
  12248. Particularly nice is the ability to drag two folders onto the droplet
  12249. and get comparisons of all matching files in the two.
  12250.  
  12251. Online help for the diff command-line options is provided by opening a
  12252. QuicKeys text editor window with the help file, taken largely from the
  12253. info file distributed with the current GNU version of diff.  Additional
  12254. documentation for the app is available in the included copy of the Sun
  12255. man pages for diff (sorry if these don't correspond exactly to the
  12256. version that Timothy Murphy ported).
  12257.  
  12258. --- Wishlist
  12259.  
  12260. Right now, the dialog resource is kept in a separate file.  It would be
  12261. better to put it directly into the Applescript droplet, but the Script
  12262. Editor seems to destroy it if you make and save any changes to the script.
  12263. Second, it would be nice to offer a more user-friendly way of choosing
  12264. command-line options, such as a big panel of buttons or a list dialog.
  12265. Finally, I'd prefer to avoid the QuicKey'ing the file i/o dialog
  12266. altogether, but there's no good way to specify the output file for diff using
  12267. only QuicKeys and Applescript (suggestions?).
  12268.  
  12269. --- Disclaimer
  12270.  
  12271. While it's reasonably bomb-proof on my own system, a Q610 running system
  12272. 7.1 with Applescript 1.1 and QuicKeys 3.0, there can't be any guarantees
  12273. about its stability on any other machine.  Any suggestions, gripes and
  12274. especially improvements will be gratefully accepted.
  12275.  
  12276. I have a similar droplet for the complementary application, 'patch', but
  12277. it still hasn't been updated to work under AppleScript 1.1.  It wouldn't
  12278. take more than a morning, but since it hasn't turned out to be all
  12279. that important for me, it hasn't been done yet.  If anyone wants it in
  12280. its current form, they're welcome to it.
  12281.  
  12282. My meager contributions to this package are public domain.  "Diff" is,
  12283. in principle, "Free Software", and Mark Alldritt's scripting additions
  12284. are freely useable but copyrighted (right?).
  12285.  
  12286. Hope this is useful to someone besides me :-)
  12287.  
  12288. Tom Pollard
  12289. Nov 5, 1994
  12290.  
  12291. -------------------------------------------------------------------------------
  12292. W. Thomas Pollard                       Department of Chemistry
  12293. pollard@cucbs.chem.columbia.edu         Columbia University
  12294. -------------------------------------------------------------------------------
  12295.  
  12296. ------------------------------
  12297.  
  12298. Date:    Fri, 11 Nov 1994 01:08:38 EST
  12299. From:    David Lloyd <100046.3512@COMPUSERVE.COM>
  12300. Subject: Scripting WindowShade
  12301.  
  12302. Scripting WindowShade...
  12303.  
  12304. > So, did anyone figure this out. I've decided having a few windows (System
  12305. > Folder, Recent Apps, Recent Docs, Recent Folders, Personal Catalog) open, but
  12306. > shrunk down is a good thing. However, when I reboot, I have to go through and
  12307. > manually shrink each one. Unfortunately, it appears that since WindowShade is
  12308. > a control panel scripting this may not be possible. Maybe I'll look at a
  12309. > QuicKeys solution. Can I tell QuicKeys to double-click some place?
  12310.  
  12311. I saw this,  and thought, this is a neat idea.
  12312. I came up with this:
  12313.  
  12314. tell application "Finder"
  12315.         activate
  12316.         copy windows to x
  12317.         copy (count of windows) to numWindows
  12318.  
  12319.         repeat with i from 1 to numWindows
  12320.                 copy bounds of window i to theBounds
  12321.                 copy ((item 1 of theBounds) + 30) to itemOne
  12322.                 copy ((item 2 of theBounds) - 10) to itemTwo
  12323.                 AutoClick {itemOne, itemTwo}
  12324.                 AutoClick {itemOne, itemTwo}
  12325.                 AutoClick {itemOne, itemTwo}
  12326.         end repeat
  12327.  
  12328. end tell
  12329.  
  12330. Unfortunately you can only get the Autoclick osax once you've registered
  12331. the Autotype osax (only a fiver).  Auto click simulates the mouse-
  12332. it  clicks at the coordinates as given in its parameters.
  12333. There are three clicks, one to activate the window and a double click.
  12334. For some reason, a double click on its own did not work as it should.
  12335.  
  12336. See that it also requires the scriptable Finder.
  12337.  
  12338. I saved this script as an application
  12339. and put it in my startup folder and it works as expected.
  12340.  
  12341. Dave L.
  12342.  
  12343. ------------------------------
  12344.  
  12345. Date:    Thu, 10 Nov 1994 22:40:36 -0800
  12346. From:    Jon Pugh <jonpugh@NETCOM.COM>
  12347. Subject: Re: "Get Terminology" event question
  12348.  
  12349. Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
  12350. >
  12351. >I don't think I've got a proper understanding of how the AppleScript
  12352. >"get terminology" event is supposed to work. On the AppleScript 1.1 CD, there
  12353. >is a document called "AppleScript Suite". This describes the get terminology
  12354. >event, but doesn't say that there are any parameters for it. So how do you
  12355. >specify what language code and script code you want the terminology for?
  12356. >
  12357. >The only application I've got at home with dynamic terminology is the
  12358. >Scriptable Finder. When I try sending it a get terminology event, I get an
  12359. >error saying some parameter is missing.
  12360.  
  12361. The direct parameter is a long which describes what language you want the
  12362. terminology in.  Basically, it is simply the script code shifted left 8
  12363. bits with the country code added into the low byte.  This is,
  12364. coincidentally, the resource id of the aete that you want.
  12365.  
  12366. For English, this is 0.  French is 1.  Japanese has two, 11 for Romanji and
  12367. 267 for Kanji.
  12368.  
  12369. Jon
  12370.  
  12371. ------------------------------
  12372.  
  12373. Date:    Thu, 10 Nov 1994 22:40:47 -0800
  12374. From:    Jon Pugh <jonpugh@NETCOM.COM>
  12375. Subject: Re: Multiple source files?
  12376.  
  12377. >> Coming from a tradition of small and concise C source files, I'd like to
  12378. >> use multiple source files for my compiled scripts and applications. Is
  12379. >> there a way I may do this with the standard AS package?
  12380. >>
  12381. >Yes. Have a look at the chapter on script objects in the AppleScript
  12382. >Language Reference.
  12383. >
  12384. >Basically, you just save a script with a few handlers in it, and load it as
  12385. >a script object in your calling routine (myScript = load script "Foo").
  12386. >Then refer to the handler in any of the normal ways (Foo's bar, tell Foo to
  12387. >bar, bar of Foo...)
  12388.  
  12389. An alternative, which is not simply the AppleScript package, is to use my
  12390. ScriptServer application and Leonard's OSA Menu to run an AppleScript which
  12391. will combine several files (ala #include) and compile the resulting file.
  12392. I have included a simple example script with ScriptServer, but I've left
  12393. the #include as an exercise for the reader.
  12394.  
  12395. If anyone wants to send me a script that does includes, I'll put it into
  12396. the ScriptServer package.  Otherwise it has to wait until I get some time
  12397. to write it, which ain't going to happen any time soon because I just got a
  12398. couple of Newtons and won't be having much free time until I get them doing
  12399. everything the way I want them too.  ;)
  12400.  
  12401. Jon
  12402.  
  12403. ------------------------------
  12404.  
  12405. Date:    Thu, 10 Nov 1994 22:57:47 -0700
  12406. From:    MR Mac - Michael Robertson <robertso@SDSC.EDU>
  12407. Subject: Tricky problem using date comparison
  12408.  
  12409. Here's the problem:
  12410.  
  12411. I have a script which I want to do a date comparison. The problem is that I
  12412. have to do this date comparison on a chunk of data I get within a loop
  12413. while talking to another app. This app has its own definition of what
  12414. 'date' means and refuses to work. Here's a simple example:
  12415.  
  12416. This works:
  12417. ----------
  12418. set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
  12419. set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
  12420.                ^               ^
  12421.                |               |
  12422.  
  12423.  
  12424. This does not work:
  12425. -------------------
  12426. tell application "Eudora"
  12427.    repeat (for a whole bunch of messages)
  12428.     set TheDate to date of message x of mailbox boxToCheck of mail folder ""
  12429.                     ^
  12430.                     |  (this line works
  12431.  
  12432.     set diff to (date TheDate) - (date "Monday, October 31, 1994")
  12433.                    ^               ^
  12434.                    |               | (this line won't)
  12435.  
  12436.     if diff meets some criteria
  12437.      munge the message
  12438.     end if
  12439.  
  12440.    end repeat
  12441. end tell
  12442.  
  12443.  
  12444. Because the 2nd & 3rd reference to "date" are within the Eudora tell, it is
  12445. using Eudora's definition of the term 'date' and not Applescripts. I can't
  12446. very well jump out of Eudora (end tell) because I'm right in the middle of
  12447. a repeat loop and I have to get assign the value of diff from criteria I
  12448. grab from Eudora. There must be some easy work around for this one. Can
  12449. some expert enlighten me?
  12450.  
  12451. How about Jon P.? Do you think you could stop writing cool OSAXen for the
  12452. *whole* AppleScript community and take time out to spoon feed me
  12453. AppleScript basics? :)
  12454.  
  12455.  
  12456.  
  12457. -- Michael
  12458.  
  12459.  
  12460. _____________________________________________________________________________
  12461. Michael Robertson - MR Mac         (619) 534-5107 office
  12462. Macintosh Business Consultant      (619) 989-8943 pager
  12463. San Diego Supercomputer Ctr.       (619) 534-5152 fax
  12464.  
  12465. Internet, America Online           robertso@sdsc.edu
  12466. _____________________________________________________________________________
  12467.  
  12468. ------------------------------
  12469.  
  12470. Date:    Fri, 11 Nov 1994 03:17:12 -0500
  12471. From:    Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  12472. Subject: OSAXen DB
  12473.  
  12474. I've placed in the incoming directory of gaea a FileMaker Pro database of
  12475. all the scripting additions I could find lying around on my hard-drives.
  12476. There are over 300 commands, including syntax. See the readme enclosed for
  12477. notes on its weaknesses and possible confusions.
  12478.  
  12479. Barry
  12480. bchern@freenet.columbus.oh.us
  12481.  
  12482. ------------------------------
  12483.  
  12484. Date:    Fri, 11 Nov 1994 10:49:56 +0100
  12485. From:    WalrathW <walrathw@RFERL.ORG>
  12486. Subject: Re: Tricky problem using date comparison
  12487.  
  12488. > I have a script which I want to do a date comparison. The problem is that I
  12489. > have to do this date comparison on a chunk of data I get within a loop
  12490. > while talking to another app. This app has its own definition of what
  12491. > 'date' means and refuses to work. Here's a simple example:
  12492. >
  12493. > This works:
  12494. > ----------
  12495. > set TheDate to "Tuesday, February 3, 1998 12:00:00 AM"
  12496. > set diff to (date TheDate) - (date "Monday, October 31, 1994 12:00:00 AM")
  12497. <snip,snip>
  12498. > This does not work:
  12499. > -------------------
  12500. > tell application "Eudora"
  12501. >    repeat (for a whole bunch of messages)
  12502. >     set TheDate to date of message x of mailbox boxToCheck of mail folder
  12503. ""
  12504. >                     ^
  12505. >                     |  (this line works
  12506. >
  12507. >     set diff to (date TheDate) - (date "Monday, October 31, 1994")
  12508. >                    ^               ^
  12509. >                    |               | (this line won't)
  12510. >
  12511. >     if diff meets some criteria
  12512. >      munge the message
  12513. >     end if
  12514. >
  12515. >    end repeat
  12516. > end tell
  12517.  
  12518. Seems like you could do the following though:
  12519.  
  12520. repeat (for a whole bunch of messages)
  12521.   tell application "Eudora"
  12522.     set TheDate to date of message x of mailbox boxToCheck of mail folder ""
  12523.   end tell
  12524.  
  12525.   set diff to (date TheDate) - (date "Monday, October 31, 1994")
  12526.  
  12527.   tell application "Eudora"
  12528.    .... .more stuff
  12529.   end tell
  12530.  
  12531. > How about Jon P.? Do you think you could stop writing cool OSAXen for the
  12532. > *whole* AppleScript community and take time out to spoon feed me
  12533. > AppleScript basics? :)
  12534.  
  12535. Yeah, Jon, Get a life! ....  ;-)
  12536.  
  12537. cheers,
  12538.   -waybe
  12539.  
  12540. ------------------------------
  12541.  
  12542. Date:    Fri, 11 Nov 1994 08:56:17 -0600
  12543. From:    Fred Terry <pfterry@LKS.CSI.COM>
  12544. Subject: Re: OSAXen DB
  12545.  
  12546. Everyone,
  12547.  
  12548. >I've placed in the incoming directory of gaea a FileMaker Pro database of
  12549. >all the scripting additions I could find lying around on my hard-drives.
  12550. >There are over 300 commands, including syntax. See the readme enclosed for
  12551. >notes on its weaknesses and possible confusions.
  12552.  
  12553. You'll find Barry's database in
  12554.  
  12555. ftp://gaea.kgs.ukans.edu/applescript/addons/OSAXenDB.sit.hqx
  12556.  
  12557. You'll also find the latest versions of Aladdin's DropStuff and StuffIt
  12558. Expander in
  12559.  
  12560. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/DropStuff_with_EE_3.5.2_Ins
  12561. taller.hqx
  12562. ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/StuffIt_Expander_3.5.2_Inst
  12563. all.hqx
  12564.  
  12565. Enjoy.
  12566.  
  12567. pf
  12568.  
  12569. ------------------------------
  12570.  
  12571. Date:    Fri, 11 Nov 1994 09:05:08 U
  12572. From:    mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
  12573. Subject: MacPGP scripts?
  12574.  
  12575.                        Subject:                               Time:8:57 AM
  12576.   OFFICE MEMO          MacPGP scripts?                        Date:11/11/94
  12577. >From the title of several recent messages about Eudora and MacPGP I'm assuming
  12578. that the latter is scriptable. Looking at it in ResEdit though I find that it
  12579. has no 'aete' resource for Frontier to sift through. Nor does Gaea's index list
  12580. any scripts for it. So the questions are:
  12581. 1) Is MacPGP really scriptable?
  12582. 2) Does anyone have any scripts for it they'd be willing to upload to Gaea?
  12583.  
  12584. Thanks,
  12585. Mark Stewart
  12586. BIAD-Research Imaging Center
  12587. UTHSCSA
  12588.  
  12589. ------------------------------
  12590.  
  12591. Date:    Fri, 11 Nov 1994 10:46:08 -0500
  12592. From:    Danny Goodman <DGoodman@AOL.COM>
  12593. Subject: Re: Tricky problem using date comparison
  12594.  
  12595. >This app has its own definition of what
  12596. >'date' means and refuses to work.
  12597.  
  12598. I don't have Eudora to see how it handles dates, but I once ran into
  12599. something like this with the offset command.  Rather than break up my main
  12600. script, I sent the job to a subroutine, which was governed by AppleScript
  12601. alone, returning any necessary data (a boolean, in your case) to the main
  12602. script.
  12603.  
  12604. Danny Goodman
  12605.  
  12606. ------------------------------
  12607.  
  12608. Date:    Fri, 11 Nov 1994 08:27:59 PST
  12609. From:    David Jokinen <GroundZero@EWORLD.COM>
  12610. Subject: Re: Scripting WindowShade
  12611.  
  12612. Here's another version of the "Toggle WindowShade" script.
  12613.  
  12614. property pClickPoint : {0, -1}
  12615. property pClickTimes : 2
  12616.  
  12617. on run
  12618.  tell application "Finder"
  12619.   activate
  12620.   repeat with iWindow in windows
  12621.    open iWindow
  12622.    tell application "PreFab Playerx"
  12623.     click location pClickPoint times pClickTimes
  12624.    end tell
  12625.   end repeat
  12626.  end tell
  12627. end run
  12628.  
  12629. I requires the Scriptable Finder and PreFab Player.
  12630.  
  12631. David Jokinen
  12632. Ground Zero Software
  12633.  
  12634. ------------------------------
  12635.  
  12636. Date:    Fri, 11 Nov 1994 08:32:17 PST
  12637. From:    David Jokinen <GroundZero@EWORLD.COM>
  12638. Subject: Re: Tricky problem using date comparison
  12639.  
  12640. >This does not work:
  12641. >-------------------
  12642. >tell application "Eudora"
  12643. >   repeat (for a whole bunch of messages)
  12644. >    set TheDate to date of message x of mailbox boxToCheck of mail folder ""
  12645. >                    ^
  12646. >                    |  (this line works
  12647. >
  12648. >    set diff to (date TheDate) - (date "Monday, October 31, 1994")
  12649. >                   ^               ^
  12650. >                   |               | (this line won't)
  12651. >
  12652. >    if diff meets some criteria
  12653. >     munge the message
  12654. >    end if
  12655. >
  12656. >   end repeat
  12657. >end tell
  12658.  
  12659. Since tell blocks don't persist across handler calls, you could stick your
  12660. date calculation in a separate handler:
  12661. ***
  12662. tell application "Eudora"
  12663.     repeat ...
  12664.         do somthing with theDate...
  12665.         set diff to CalcDiff(theDate)
  12666.         do some more stuff with theDate...
  12667.     end repeat
  12668. end tell
  12669.  
  12670. on CalcDiff(aDate)
  12671.     return aDate - (date "Monday, October 31, 1994")
  12672. end CalcDiff
  12673. ***
  12674. David Jokinen
  12675. Ground Zero Software
  12676.  
  12677. ------------------------------
  12678.  
  12679. Date:    Fri, 11 Nov 1994 12:11:26 -0500
  12680. From:    Daniel Berlinger <Daniel@CIRCUMTECH.COM>
  12681. Subject: Re: MacPGP scripts?
  12682.  
  12683. --part_AAE90FEE0009B19400000002
  12684. Content-Type: Text/Plain; charset=US-ASCII
  12685. Content-Disposition: Inline
  12686.  
  12687. > 1) Is MacPGP really scriptable?
  12688.  
  12689. The unofficial version 2.6 universal which was released with the same
  12690. "limitations" as other unliscensed version has the aete resource. It is my
  12691. understanding that MIT is adding scripting to the official version and have
  12692. decided to wait for that.
  12693.  
  12694. Additionally, the 2.6 version will not read versions older than 2.3, I
  12695. believe, but the universal version does.
  12696.  
  12697. Daniel
  12698.  
  12699. --part_AAE90FEE0009B19400000002
  12700. Content-Type: Text/Plain; charset=US-ASCII
  12701. Content-Disposition: Inline
  12702.  
  12703. Daniel Berlinger                         Daniel@circumtech.com
  12704. "I wasn't thinking...
  12705.           ...obviously this doesn't matter to my point."
  12706. Administrator of Information Systems   Circumstance Technology
  12707. --part_AAE90FEE0009B19400000002--
  12708.  
  12709. ------------------------------
  12710.  
  12711. Date:    Fri, 11 Nov 1994 11:35:38 -0600
  12712. From:    Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  12713. Subject: String to Record Class
  12714.  
  12715. Greetings-
  12716.  
  12717. I have an html form running on a web that writes information out to a file.
  12718. As you may know this information is tagged with a field name. This got me
  12719. thinking about applescripts record class so I munged the data it writes to
  12720. the file to look just like a record - example
  12721. {firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  12722. to read that data back in at a later time and have applescript see it as a
  12723. record class object. When you read the file of course you get a string -
  12724. can you coerce this string to a record? The simple - newData as record -
  12725. does not seem to work. Any ideas.
  12726.  
  12727. Best-
  12728.  
  12729. Greg
  12730.  
  12731.  
  12732.  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12733.  Greg Hiner                                      (512) 471-7134 ext.82
  12734.  Computer Support                                hiner@mail.utexas.edu
  12735.  Garrison Hall 318
  12736.  University of Texas at Austin
  12737.  Austin, TX 78712
  12738.  
  12739. ------------------------------
  12740.  
  12741. Date:    Fri, 11 Nov 1994 11:45:15 -0600
  12742. From:    Dennis Whiteman <ultimate@MAIL.ICON.NET>
  12743. Subject: Script Editor Clicking Inaccurate
  12744.  
  12745. Hello,
  12746.  
  12747. Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  12748. 7.5? Selecting text in the editor isn't accurate and I'm getting a little
  12749. frustrated. I have to click close to some text and cursor over to select what
  12750. I want. Clicking is off by one or two characters and its a real problem. I
  12751. didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  12752. file over from the old System. Could this have something to do with this
  12753. problem?
  12754.  
  12755. Dennis L. Whiteman
  12756. THE ULTIMATE FREELANCER
  12757. ultimate@mail.icon.net
  12758.  
  12759. ------------------------------
  12760.  
  12761. Date:    Fri, 11 Nov 1994 19:28:19 +0100
  12762. From:    Christoph Dohrmann <cd@GUIDO.ZKM.DE>
  12763. Subject: Eudora "SaveAs" and other menues
  12764.  
  12765. For some reason I need to save my messages into ASC Files (alfa) after I
  12766. used the menu "Edit|Wrap selection" to limit line length...
  12767. Online I can do this using the appropriate menues...
  12768. I would like to automate this and some more work I need to do in advance with -
  12769. you guessed it -                Applescript.
  12770.  
  12771. Since I need only the body (field "" of message 0) I could copy this and
  12772. write it into a file using the FileI/O osax.
  12773. BUT I thought about using the "save" command that is included with eudora's
  12774. core suite... which syntax is described as
  12775.  
  12776. >save: Save an object
  12777. >    save  reference  -- the object to save
  12778. >       [in  alias]  -- the file in which to save the object
  12779. >       [as  type class]  -- the file type of the document in which to save...
  12780.  
  12781.  
  12782.  
  12783. telling Eudora to
  12784.  
  12785. >    save field "" of message 0 in "TESTFILE" as text
  12786.  
  12787. results in a
  12788.  
  12789. >>   "field "" does not understand the save message..."
  12790.  
  12791. Any Ideas....
  12792.  
  12793. Than_ in advance
  12794.     .
  12795.     .
  12796.     .
  12797.     .
  12798.     X
  12799.  
  12800. ------------------------------
  12801.  
  12802. Date:    Fri, 11 Nov 1994 10:36:18 U
  12803. From:    Chuck Pliske <chuckp@U.WASHINGTON.EDU>
  12804. Subject: Re: MACSCRPT Digest - 9 Nov 1994 to 10 Nov 1994
  12805.  
  12806. I have been trying to use the boolean file properties but they don't seem to
  12807. work:
  12808.  
  12809. on open xyzzy
  12810.         tell application "Finder"
  12811.                 repeat with f in xyzzy
  12812.                         if the folder of f then
  12813.                         ...
  12814.                         end if
  12815.                 end repeat
  12816.         end tell
  12817. end open
  12818.  
  12819. The dictionary sez there are a few of these: locked (which works), and alias
  12820. and folder (which don't seem to work)
  12821.  
  12822. An apple example (synchronize folders) uses the (f as text) and looks for a
  12823. trailing ":" to indicate a folder, but it seems as though there is a testable
  12824. property.
  12825.  
  12826. Am I doing something wrong?
  12827.  
  12828. thanks,
  12829.  
  12830. Chuck
  12831.  
  12832. This mail courtesy of Apple's System 7.5 and StarNine's Internet Gateway
  12833.  
  12834. ------------------------------
  12835.  
  12836. Date:    Fri, 11 Nov 1994 11:02:14 -0800
  12837. From:    Kevin Purcell <kevinpu@ATM.COM>
  12838. Subject: Re: Script Editor Clicking Inaccurate
  12839.  
  12840. >Hello,
  12841. >
  12842. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  12843. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  12844. >frustrated. I have to click close to some text and cursor over to select what
  12845. >I want. Clicking is off by one or two characters and its a real problem. I
  12846. >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  12847. >file over from the old System. Could this have something to do with this
  12848. >problem?
  12849.  
  12850.  
  12851. I reported this one to Apple by way of Adam "TidBITS" Engst and got mail
  12852. back from an Apple test engineer asking how to repro it. I sent a really
  12853. detailed bug report (including step by step instructions) and I think they
  12854. then reproed it and sent it onto engineering.
  12855.  
  12856. In my case it only happened on a Power Mac (any model) with System 7.5 with
  12857. the WorldScript Power Adaptor extension loaded. The offset seemed related
  12858. to the number of style changes in a line of text. Removing the WorldScript
  12859. Power Adaptor extension solved the problem, but TextEdit is then as slow as
  12860. hell.
  12861.  
  12862. This is the first time I've heard of it on a 68k Mac and pre-7.5 too.
  12863.  
  12864. Kevin Purcell      Attachmate Corp        (206) 649-6489
  12865. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  12866.  
  12867. ------------------------------
  12868.  
  12869. Date:    Fri, 11 Nov 1994 19:36:19 GMT
  12870. From:    Dan Hinckley <dbh@GN.APC.ORG>
  12871. Subject: Eudora script upload
  12872.  
  12873. I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
  12874. automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
  12875. this is of interest. I'll appreciate any and all suggestions, comments,
  12876. etc. If anyone can tell me how to move the insertion point in a Eudora msg
  12877. body, I'll do an improved version right away.
  12878.  
  12879. ------------------------------
  12880.  
  12881. Date:    Fri, 11 Nov 1994 14:47:22 -0500
  12882. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  12883. Subject: Re: String to Record Class
  12884.  
  12885. >I have an html form running on a web that writes information out to a file.
  12886. >As you may know this information is tagged with a field name. This got me
  12887. >thinking about applescripts record class so I munged the data it writes to
  12888. >the file to look just like a record - example
  12889. >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  12890. >to read that data back in at a later time and have applescript see it as a
  12891. >record class object. When you read the file of course you get a string -
  12892. >can you coerce this string to a record? The simple - newData as record -
  12893. >does not seem to work. Any ideas.
  12894. >
  12895. > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12896. > Greg Hiner                                      (512) 471-7134 ext.82
  12897. > Computer Support                                hiner@mail.utexas.edu
  12898. > Garrison Hall 318
  12899. > University of Texas at Austin
  12900. > Austin, TX 78712
  12901.  
  12902. Greg,
  12903. What it sounds like you want is a string of records:
  12904.  
  12905. set a to {{Name:"Mark",Address:"hadfield@sickkids.on.ca"},{Name:"Greg",...}}
  12906.  
  12907. You can then 'get record 1 of a'
  12908.  
  12909. I'm not sure if this is a full answer for you maybe just a direction to
  12910. look at...
  12911.  
  12912.  
  12913.  
  12914. Mark Hadfield
  12915. hadfield@sickkids.on.ca
  12916. The Hospital For Sick Children
  12917.  
  12918. ------------------------------
  12919.  
  12920. Date:    Fri, 11 Nov 1994 13:58:23 -0600
  12921. From:    Frank Concannon <frank-concannon@UOKHSC.EDU>
  12922. Subject: Re: Scriptable Telnet App?
  12923.  
  12924. >>Does anyone know of a scriptable Telnet App?
  12925. >>
  12926. >>Thanks,
  12927. >>
  12928. >>Tomo
  12929. >
  12930. >My TCP/IP Scripting Addition includes a Telnet sample script... you can
  12931. >modify it to do whatever you'd like during a telnet session.
  12932. >
  12933. >You can find it at gaea.kgs.ukans.edu, in
  12934.  
  12935. snip
  12936.  
  12937. >Let me know if you have any questions on using it or customizing it...
  12938. >
  12939. >-- Atul
  12940. >
  12941.  
  12942.  
  12943. Is it possible to write a full featured terminal emulation package using
  12944. this approach, with regard for terminal emulation etc ? What are the
  12945. issues.?
  12946.  
  12947. If this is possible I might give it a try BUT if there are obstacles I
  12948. would like to know of them now rather than when I am down the road.
  12949.  
  12950. Frank C.
  12951. R&E
  12952.  
  12953. ------------------------------
  12954.  
  12955. Date:    Fri, 11 Nov 1994 11:08:25 -0800
  12956. From:    Kevin Purcell <kevinpu@ATM.COM>
  12957. Subject: Re: String to Record Class
  12958.  
  12959. >I have an html form running on a web that writes information out to a file.
  12960. >As you may know this information is tagged with a field name. This got me
  12961. >thinking about applescripts record class so I munged the data it writes to
  12962. >the file to look just like a record - example
  12963. >{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  12964. >to read that data back in at a later time and have applescript see it as a
  12965. >record class object. When you read the file of course you get a string -
  12966. >can you coerce this string to a record? The simple - newData as record -
  12967. >does not seem to work. Any ideas.
  12968.  
  12969. Why munge it into a text file?
  12970.  
  12971. If you store it as a property of a script object then you can load and save
  12972. the script object in a script document with very little hassle and still
  12973. have all the information contained inside the script object accessible in
  12974. an easy way. You could have a property contain a list of lists of records
  12975. contain lists of records and have is saved and read perfectly. Or would you
  12976. rather rewrite the AppleScript parser to parse the text stream representing
  12977. these objects.
  12978.  
  12979. When a system gives you (a kind of) object oriented persistent store its
  12980. better to make use of it than to perpetuate the "stream of chars" files as
  12981. a storage medium.
  12982.  
  12983.  
  12984. Kevin Purcell      Attachmate Corp        (206) 649-6489
  12985. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  12986.  
  12987. ------------------------------
  12988.  
  12989. Date:    Fri, 11 Nov 1994 15:05:34 -0500
  12990. From:    John Schettino <js12@GTE.COM>
  12991. Subject: Re: Script Editor Clicking Inaccurate
  12992.  
  12993. >Hello,
  12994. >
  12995. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  12996. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  12997. >frustrated. I have to click close to some text and cursor over to select what
  12998. >I want. Clicking is off by one or two characters and its a real problem. I
  12999. >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  13000. >file over from the old System. Could this have something to do with this
  13001. >problem?
  13002. >
  13003.  
  13004. Upgraded from 7.1 to 7.5 on a centris, no problem (had AS 1.1 both before
  13005. and after)
  13006.  
  13007. - john
  13008.  
  13009. -----------------------------------------
  13010. js12@gte.com             GTE Laboratories
  13011. John Schettino                Waltham, MA
  13012.  
  13013. ------------------------------
  13014.  
  13015. Date:    Fri, 11 Nov 1994 14:22:27 -0600
  13016. From:    Frank Concannon <frank-concannon@UOKHSC.EDU>
  13017. Subject: Idle time in FaceSpan Application
  13018.  
  13019. Aghhhhhhhhhhh helllllllpppppp!
  13020.  
  13021.         What is the problem with the following piece of script.
  13022.  
  13023. on idle
  13024.   pollTheNet()
  13025.   repurn delayTime
  13026. end idle
  13027.  
  13028.         It is part of a FaceSpan application that I have written that keep
  13029. an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
  13030. do "pollTheNet()" and with the result update a display on my Mac. However
  13031. what happens is that it just continually does "pollTheNet()" which dosent
  13032. do anything for my productivity as my Mac get tied up with repeated polls.
  13033. ( currently I just hit a button to get the lates condition of things ).
  13034.  
  13035.         I am obviously missing something fairly basic here but I have been
  13036. fixated on this for so long that I can't see it any more. I have
  13037. implemented a similar procedure with an AppleScript application and that
  13038. works fine with any delay time I care to specify but I would prefer to run
  13039. a FS application.
  13040.  
  13041.         Is there some concideration to the way in which FS does it as
  13042. opposed to AS.
  13043.  
  13044. incidentally 'set idle delay of application "foo" to whatever' is not what
  13045. I want.
  13046.  
  13047. Frank C.
  13048. R&E
  13049.  
  13050. ------------------------------
  13051.  
  13052. Date:    Fri, 11 Nov 1994 15:41:51 -0500
  13053. From:    Troy Heninger <troyh@NETCOM.COM>
  13054. Subject: Re: Idle time in FaceSpan Application
  13055.  
  13056. At  2:22 PM 11/11/94 -0600, Frank Concannon wrote:
  13057. >Aghhhhhhhhhhh helllllllpppppp!
  13058. >
  13059. >        What is the problem with the following piece of script.
  13060. >
  13061. >on idle
  13062. >  pollTheNet()
  13063. >  repurn delayTime
  13064. >end idle
  13065. >
  13066. >        It is part of a FaceSpan application that I have written that keep
  13067. >an eye on the state of my Mac Lab. Every Xminutes ( delayTime ) it should
  13068. >do "pollTheNet()" and with the result update a display on my Mac. However
  13069. >what happens is that it just continually does "pollTheNet()" which dosent
  13070. >do anything for my productivity as my Mac get tied up with repeated polls.
  13071. >( currently I just hit a button to get the lates condition of things ).
  13072. >
  13073. >        I am obviously missing something fairly basic here but I have been
  13074. >fixated on this for so long that I can't see it any more. I have
  13075. >implemented a similar procedure with an AppleScript application and that
  13076. >works fine with any delay time I care to specify but I would prefer to run
  13077. >a FS application.
  13078. >
  13079.  
  13080. As far as I understand, the delay time has always been specified in
  13081. seconds, not minutes.  That might explain why it continually calls
  13082. pollTheNet().  Try multiplying the number by 60 and see if that helps.
  13083.  
  13084.  ______________________________________________________________________
  13085. | Troy Heninger    | That which you persist in doing becomes easier.   |
  13086. | troyh@netcom.com | Its not that the nature of the thing changes, but |
  13087. |                  | your ability to do it increases. (Heber J. Grant) |
  13088.  ______________________________________________________________________
  13089.  
  13090. ------------------------------
  13091.  
  13092. Date:    Fri, 11 Nov 1994 15:04:08 -0600
  13093. From:    Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  13094. Subject: Re: String to Record Class
  13095.  
  13096. >>I have an html form running on a web that writes information out to a file.
  13097. >>As you may know this information is tagged with a field name. This got me
  13098. >>thinking about applescripts record class so I munged the data it writes to
  13099. >>the file to look just like a record - example
  13100. >>{firstname:"Greg",lastname:"Hiner"}. Now what I would like to do is be able
  13101. >>to read that data back in at a later time and have applescript see it as a
  13102. >>record class object. When you read the file of course you get a string -
  13103. >>can you coerce this string to a record? The simple - newData as record -
  13104. >>does not seem to work. Any ideas.
  13105. >
  13106. >Why munge it into a text file?
  13107. >
  13108. >If you store it as a property of a script object then you can load and save
  13109. >the script object in a script document with very little hassle and still
  13110. >have all the information contained inside the script object accessible in
  13111. >an easy way. You could have a property contain a list of lists of records
  13112. >contain lists of records and have is saved and read perfectly. Or would you
  13113. >rather rewrite the AppleScript parser to parse the text stream representing
  13114. >these objects.
  13115. >
  13116. >When a system gives you (a kind of) object oriented persistent store its
  13117. >better to make use of it than to perpetuate the "stream of chars" files as
  13118. >a storage medium.
  13119. >
  13120.  
  13121. Well yes but let me walk through this a bit because I still think there is
  13122. a problem.
  13123.  
  13124. First I'm taking a long string passed by MacHTTP to my script. Something like:
  13125.  "firstname=Greg&lastname=Hiner&department=American+Studies&position=Graduat
  13126. e&interests=Space+for+something+interesting+to+say%2C+if+you+have+something+
  13127. to+say.+Blah%2C+Blah."
  13128.  
  13129. So first off I'm starting with a string that is being handed to me by
  13130. another program. I then munge this into a string that looks like a record
  13131. (this maybe stupid I guess but hell it was worth a shot). Now I've got
  13132. something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
  13133. save this string as a property but it still isn't a record.
  13134.  
  13135. So I guess the real basic question is can you take a string handed to you
  13136. by another program and turn that string into a record class object?
  13137.  
  13138. If I'm missing something real basic here don't assume I know what I'm
  13139. talking about.
  13140.  
  13141. Thanks,
  13142.  
  13143. Greg
  13144.  
  13145. ------------------------------
  13146.  
  13147. Date:    Fri, 11 Nov 1994 14:45:34 -0600
  13148. From:    Fred Terry <pfterry@LKS.CSI.COM>
  13149. Subject: Re: Eudora script upload
  13150.  
  13151. Hi folks,
  13152.  
  13153. >I've placed in the gaea incoming folder a script, EudoraAutoReply, to do
  13154. >automatic replies in Eudora 2.1 by checking for keywords in headers. Hope
  13155. >this is of interest. I'll appreciate any and all suggestions, comments,
  13156. >etc. If anyone can tell me how to move the insertion point in a Eudora msg
  13157. >body, I'll do an improved version right away.
  13158.  
  13159. This can be found in
  13160.  
  13161. ftp://gaea.kgs.ukans.edu/applescript/scripts/EudoraAutoReply.sit.hqx
  13162.  
  13163. Have fun.
  13164.  
  13165. pf
  13166.  
  13167. ------------------------------
  13168.  
  13169. Date:    Fri, 11 Nov 1994 15:18:22 PST
  13170. From:    David Jokinen <GroundZero@EWORLD.COM>
  13171. Subject: Re: String to Record Class
  13172.  
  13173. >So first off I'm starting with a string that is being handed to me by
  13174. >another program. I then munge this into a string that looks like a record
  13175. >(this maybe stupid I guess but hell it was worth a shot). Now I've got
  13176. >something like {firstname:"Greg", lastname:"Hiner" . . . . }. Now I could
  13177. >save this string as a property but it still isn't a record.
  13178.  
  13179. Hmm... Let me ask a stupid question:
  13180.  
  13181. As long as you're munging, why not munge directly to a record? Or at least a
  13182. list? I've had a lot of success with Wayne Walrath's "tokenize" osax for this
  13183. kind of munging. In fact, one of Wayne's example scripts includes a munger
  13184. for an Internet header that looked a lot like your example.
  13185.  
  13186. As far as writing to a file, try this:
  13187. ***
  13188. set theList to {{firstname:"Greg", lastname:"Hiner"}, {firstname:"David",
  13189. lastname:"Jokinen"}}
  13190.  
  13191. -- open a file
  13192. write theList to theFileRef
  13193.  
  13194. -- take a nap then reopen the file
  13195. set theList to read theFileRef as list
  13196. ***
  13197. David Jokinen
  13198. Ground Zero Software
  13199.  
  13200. ------------------------------
  13201.  
  13202. Date:    Fri, 11 Nov 1994 15:37:17 -0800
  13203. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13204. Subject: Re: Tricky problem using date comparison
  13205.  
  13206. >>This app has its own definition of what
  13207. >>'date' means and refuses to work.
  13208. >
  13209. >I don't have Eudora to see how it handles dates, but I once ran into
  13210. >something like this with the offset command.  Rather than break up my main
  13211. >script, I sent the job to a subroutine, which was governed by AppleScript
  13212. >alone, returning any necessary data (a boolean, in your case) to the main
  13213. >script.
  13214.  
  13215. After one quick test in Frontier, in which Eudora 2.0.1 sent me a message's
  13216. date as the string "Tuesday", I decided I didn't want to deal with that
  13217. (for today it's a time, for this week its a day name, otherwise its a
  13218. date/time string).  There may well be an "as ..." phrase one can use to get
  13219. a known date format from Eudora.
  13220.  
  13221. Maybe over the weekend, if I don't see other posts.
  13222.  
  13223.    --John
  13224.  
  13225. --
  13226. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13227.  
  13228. ------------------------------
  13229.  
  13230. Date:    Fri, 11 Nov 1994 15:41:38 -0800
  13231. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13232. Subject: Re: Script Editor Clicking Inaccurate
  13233.  
  13234. >Hello,
  13235. >
  13236. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  13237. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  13238. >frustrated. I have to click close to some text and cursor over to select what
  13239. >I want. Clicking is off by one or two characters and its a real problem. I
  13240. >didn't have this problem with SE 1.1.1 and System 7.1.2. I copied my prefs
  13241. >file over from the old System. Could this have something to do with this
  13242. >problem?
  13243. >
  13244.  
  13245. Yes...and indeed it is annoying.  It's not restricted to Script
  13246. Editor...you can induce SimpleText to do much the same thing.  It seems to
  13247. be related to heavily mixed type faces on a single line.  [I think it's
  13248. also related to Script Editor's insistence, here, on drawing the right ends
  13249. of long lines under the scroll bar...a problem shared with alternate
  13250. dictionary viewers.]
  13251.  
  13252. On my machine (8100), this problem predates System 7.5, by the way.
  13253.  
  13254.    --John
  13255.  
  13256. --
  13257. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13258.  
  13259. ------------------------------
  13260.  
  13261. Date:    Fri, 11 Nov 1994 18:18:18 +0000
  13262. From:    Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  13263. Subject: Re: Script Editor Clicking Inaccurate
  13264.  
  13265.  I copied my prefs
  13266. >file over from the old System. Could this have something to do with this
  13267. >problem?
  13268. >
  13269. >Dennis L. Whiteman
  13270. >THE ULTIMATE FREELANCER
  13271. >ultimate@mail.icon.net
  13272.  
  13273. ScrAp the prefs file and start up the app, it will make new ones. Those are
  13274. almost always your culprit.
  13275.  
  13276. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  13277.          www server: http://josaiah.sewanee.edu/
  13278.         Elomense(MUD): josaiah.sewanee.edu 1999
  13279.  
  13280. ------------------------------
  13281.  
  13282. Date:    Fri, 11 Nov 1994 19:39:40 -0600
  13283. From:    Matt Brown <c624618@SHOWME.MISSOURI.EDU>
  13284. Subject: Re: Script Editor Clicking Inaccurate
  13285.  
  13286. At 11:45 AM 11/11/94, Dennis Whiteman wrote:
  13287. >Has anyone else noticed odd behaviour with Script Editor 1.1.1 and System
  13288. >7.5? Selecting text in the editor isn't accurate and I'm getting a little
  13289. >frustrated. I have to click close to some text and cursor over to select what
  13290. >I want. Clicking is off by one or two characters and its a real problem.
  13291.  
  13292. Yes, I have this same problem. The strange thing is that it just began, and
  13293. I have changed nothing in my system configuration! Any input would be
  13294. greatly appreciated.
  13295.  
  13296. Matt Brown                       | "Our scientific power has outrun our
  13297.                                  |    spiritual power. We have guided
  13298. c624618@showme.missouri.edu      |      missiles and misguided men."
  13299. http://www.missouri.edu/~c624618 |        --Martin Luther King Jr.
  13300.  
  13301. ------------------------------
  13302.  
  13303. Date:    Fri, 11 Nov 1994 20:46:14 -0800
  13304. From:    { brad brace } <bbrace@NETCOM.COM>
  13305. Subject: Microphone Script help needed
  13306.  
  13307. Can anyone provide some assistance with the following Microphone script?
  13308. I think I'm close to making this work...?
  13309.  
  13310.  Settings File = MicroPhone Settings
  13311.  Script Name = 12-hr
  13312.  Command Key = =
  13313.  F-Key =
  13314.  Menu = YES
  13315.  Button = NO
  13316.  Version = 4000
  13317.  System = Macintosh
  13318.  
  13319. This project requires a script which will upload one jpeg and one gif file
  13320. to my dial-up Internet ftp account every 12 hours. I plan to scan a dozen
  13321. or so photos at a time into my home computer (they will be consecutively
  13322. named, ie. 0001.gif, 0002.gif, 0003.gif... 0001.jpg, 0002.jpg,
  13323. 0003.jpg...etc), and placed in the folder named 12-hr.  The first two of
  13324. these scans need to be renamed to 12hr.gif and 12hr.jpg prior to being
  13325. uploaded (where they will replace the identically named, previous files of
  13326. the last 12 hours). The modem then disconnects and the process repeats 12
  13327. hours later.
  13328.  
  13329. The imagery for this project has been fifteen years in the making, and is an
  13330. appropriate extension from the physically-published ISBN-books (see file
  13331. in my ftp-subdir). There are several thousand, sequenced, grey-scale
  13332. images that are to be electronically published/posted once every 12 hours
  13333. for years to come. Needless to say I need to automate this procedure and
  13334. try and curtail as many glitches as possible at the outset.  Any additional
  13335. assistance/ideas are gratefully appreciated.
  13336.  
  13337.  
  13338.  
  13339.    1    Set Variable * 12-hr from Folder Dialog "'12-hr'"
  13340.    2    Wait Until Time "'12:00'"
  13341.    3    Set Variable * count from Expression "0"
  13342.    4    While Expression "count < 12"
  13343.    5      Set Variable * filename from Expression "'0000' & count & '.jpg'"
  13344.    6      Set Variable * filename from Expression "'0000' & count & '.gif'"
  13345.    7      File * Rename "filename,'12hr.jpg'"
  13346.    8      File * Rename "filename,'12hr.gif'"
  13347.    9      Dial Service * "'netcom'"
  13348.   10      Wait for Text "'login'"
  13349.   11      Send Text String "'bbrace^M'"
  13350.   12      Wait for Text "'password:'"
  13351.   13      Send Text String "'xxxx^M'"
  13352.   14      Repeat
  13353.   15      Until Success
  13354.   16      Send File * ZMODEM Binary "'12hr.jpg'"
  13355.   17      Send File * ZMODEM Binary "'12hr.gif'"
  13356.   18      Send Text String (protected) "'mv 12hr.* ~ftp/pub/bbrace'"
  13357.   19      Send Text String (protected) "'chmod a+r ~ftp/pub/bbrace/*'"
  13358.   20      Send Text String (protected) "'lo'"
  13359.   21      File * Rename "'12hr.jpg',filename"
  13360.   22      File * Rename "'12hr.gif',filename"
  13361.   23      Set Variable * count from Expression "count +1"
  13362.   24    End While
  13363.  
  13364.  
  13365. (Does the 12hr-folder need to be in the Microphone folder?)
  13366. (Will Microphone be able to wake my Mac up every 12hrs?)
  13367.  
  13368. --
  13369.    { brad brace }                               bbrace@netcom.com
  13370.    ftp://ftp.netcom.com/pub/bbrace/bbrace.html    ~finger for pgp
  13371.  
  13372. ------------------------------
  13373.  
  13374. End of MACSCRPT Digest - 10 Nov 1994 to 11 Nov 1994
  13375. ***************************************************
  13376.  
  13377.  
  13378.            ************************************************
  13379.              Text attachment found and added as enclosure
  13380.            ************************************************
  13381.  
  13382.  
  13383. --Boundary (ID 5/xWJ6/exZHg8zIb/e4iWg)--
  13384. =========================================================================
  13385. Date:         Mon, 14 Nov 1994 08:57:41 -0600
  13386. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13387. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13388. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13389. Subject:      Re: I see troubles
  13390. In-Reply-To:  Your message of "Sun, 13 Nov 94 14:16:16 CST"
  13391.  
  13392. Folks,
  13393.  
  13394. >In message <199411131951.NAA23625@boombox.micro.umn.edu> Kee Nethery:
  13395. >> did the entire macscripting mailing list just get subscribed to the
  13396. >> nisus mailing list?
  13397. >>
  13398. >> >You have been added to the Nisus mailing list. If you want to
  13399. >> >unsubscribe in the future, send the message
  13400. >
  13401. >It would so appear.  I hope this is an error on someone's part, and that
  13402. >it gets corrected VERY soon.
  13403.  
  13404. I don't think there is a need for panic. I just checked the Nisus and the
  13405. MacScripting lists, and don't see any crossed subscriptions. My guess is that
  13406. someone accidentally sent this into the list by mistake.
  13407.  
  13408. Unless, of course, someone has actually gotten a Nisus message who isn't
  13409. subscribed to the Nisus mailing list.....
  13410.  
  13411. pf
  13412. =========================================================================
  13413. Date:         Mon, 14 Nov 1994 08:48:17 -0800
  13414. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13415. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13416. From:         Kevin Purcell <kevinpu@ATM.COM>
  13417. Subject:      Re: FMP Repeating Fields and Excel WorkSheets
  13418.  
  13419. >Actually, I think it's OK to overfill a range. I find it easiest to write a
  13420. >simple "fillRange" handler, which takes the Excel range name and list data
  13421. >as two parameters. It would then find the number of rows, the count of the
  13422. >list, and add null string list items to fill up the list (set end of
  13423. >theList to "").
  13424.  
  13425. You are right -- if only it was the other way around it would make life
  13426. easier:-)
  13427.  
  13428. The problem is when you don't have rectangular arrays, that is one row
  13429. falls short. I am working on a hack for this that just pads out the short
  13430. sublists with null items but it does mean you have to cycle through all of
  13431. the data with AppleScript which removes the advantage of doing one large
  13432. transaction with Excel.
  13433.  
  13434. Kevin Purcell      Attachmate Corp        (206) 649-6489
  13435. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  13436. =========================================================================
  13437. Date:         Mon, 14 Nov 1994 09:08:04 -0800
  13438. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13439. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13440. From:         Mike Cohen <isis@NETCOM.COM>
  13441. Subject:      Re: Accessing the OSA from C
  13442.  
  13443. At 8:57 AM 11/14/94, Deirdre Saoirse-Savino wrote:
  13444. >OK, I see the book on how to do the OSACompile and all that.
  13445. >
  13446. >How do I check if these traps are available? There doesn't seem to be a
  13447. >Gestalt selector for same, nor can I find a way of checking directly.
  13448. >
  13449. >_Deirdre
  13450.  
  13451. That isn't really a trap - it's a call to the scripting component. To see
  13452. if it's available, make sure the component manager is installed, and then
  13453. check for the presence of one or more scripting components.
  13454.  
  13455. _______________________________________________________________
  13456. Mike Cohen           | ISIS International
  13457. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  13458. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  13459. Home Page: ftp://ftp.netcom.com/pub/isis/home.html
  13460. =========================================================================
  13461. Date:         Mon, 14 Nov 1994 12:01:20 -0600
  13462. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13463. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13464. From:         Fred Terry <pfterry@LKS.CSI.COM>
  13465. Subject:      Please Read (was Re: SUBSCRIBE)
  13466.  
  13467. Everyone,
  13468.  
  13469. Kevin Purcell has pointed out that I'm the culprit of the bogus "You are now
  13470. subscribed to the Nisus mailing list".
  13471.  
  13472. >I would hope not!
  13473. >
  13474. >You sent this to the MacScripting list, Fred!
  13475.  
  13476. I'm not sure what bleary-eyed fever caused this, but please accept my earnest
  13477. apologies.
  13478.  
  13479. Also, Please stop sending me unsubscribe messages! Dealing with those have
  13480. been my penance this morning for such a bozo error.
  13481.  
  13482.  
  13483. Again, sorry for the confusion.
  13484.  
  13485. pf
  13486.  
  13487.  
  13488.  
  13489. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  13490. Fred Terry  Cadence Design Systems  pfterry@lks.csi.com  +1 913 841 1283
  13491. =========================================================================
  13492. Date:         Mon, 14 Nov 1994 12:19:22 U
  13493. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13494. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13495. From:         Richard Petty <Richard_Petty@OAKQM3.SPS.MOT.COM>
  13496. Subject:      Frontier Address Self-ident
  13497.  
  13498.         Reply to:   Frontier Address Self-identity
  13499.   Does anyone know a way of having a Frontier script ask what it's own name
  13500. is?
  13501.   For example, if a script located at root.scratchpad.testscript is running,
  13502. how can I get it to return "testscript"
  13503.   I want to achieve this so that I can write a generic script that will act
  13504. on a file whose name matches the script name.  A date flag also would match
  13505. the file name.
  13506.  
  13507. Thanks ahead of time...
  13508.  
  13509. --Richard Petty
  13510. rwvr90@email.sps.mot.com
  13511.  
  13512. Motorola
  13513. Austin, Texas
  13514. =========================================================================
  13515. Date:         Mon, 14 Nov 1994 10:33:30 -0800
  13516. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13517. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13518. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13519. Subject:      Re: Accessing the OSA from C
  13520.  
  13521. >OK, I see the book on how to do the OSACompile and all that.
  13522. >
  13523. >How do I check if these traps are available? There doesn't seem to be a
  13524. >Gestalt selector for same, nor can I find a way of checking directly.
  13525.  
  13526. The Gestalt selector is gestaltAppleEventsAttr ('evnt')
  13527.  
  13528. If bit number 2  (1 << gestaltOSLInSystem) is set, the OSA trap is
  13529. available (or the right shared library is in place on a Power Mac).
  13530.  
  13531. I think.
  13532.  
  13533. [This stuff is in Inside Mac, Operating System Utilities, chapter 1.  Apple
  13534. has been a little inconsistent as to whether such things are also in the
  13535. individual chapters and volumes, if they are in the Gestalt chapter's
  13536. listing.]
  13537.  
  13538.    --John
  13539.  
  13540. --
  13541. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13542. =========================================================================
  13543. Date:         Mon, 14 Nov 1994 10:33:35 -0800
  13544. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13545. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13546. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13547. Subject:      Re: Lessons Learned--So Far
  13548.  
  13549. At 23:07 11/13/94, Alex L. Bangs wrote:
  13550. >* I've been running the scripts I use directly from my app using OSAExecute
  13551. >and OSAExecuteEvent (the latter lets me run a script and send an open
  13552. >event, so I can pass in a file). Now we all know that AppleScript has this
  13553. >nice little way of asking where an app is if you move the script to another
  13554. >machine, and it stores this somewhere or another. Unfortunately, if you run
  13555. >the script directly yourself, it has no way to save this information. So I
  13556. >now save the script after execution and it now is able to properly cache
  13557. >and save the data.
  13558.  
  13559.  
  13560. Provide a "context" (a compiled script object).  Stash it in your
  13561. preferences file (or stash a different one in each docuemnt's resource
  13562. fork, if you prefer).  "Load" the context, and pass the resulting OSAID
  13563. value in the context parameter to the other calls.
  13564.  
  13565. Let me know whether it works for you...it does what little I've asked of it.
  13566.  
  13567.    --John
  13568.  
  13569. --
  13570. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13571. =========================================================================
  13572. Date:         Mon, 14 Nov 1994 10:33:39 -0800
  13573. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13574. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13575. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13576. Subject:      Re: "Get Terminology" event question
  13577.  
  13578. >> It is important for anyone using this call to remember that it can return a
  13579. >> purgeable handle if the aete resource is purgeable.  In the short term aete
  13580. >> resources shouldn't be marked purgeable but many are (Hypercard and
  13581. >> PhotoFlash both are).  Some future release of AppleScript might fix this.
  13582. >
  13583. >While on the subject, I noticed something I thought was kind of odd over the
  13584. >weekend. I have a background only scriptable app. I was sending it some
  13585. >events from a script running on another machine across the network, and at
  13586. >the same time snooping through the app's memory with Zone Ranger. All of a
  13587. >sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
  13588. >don't support the get terminology event though. Is it possible that the
  13589. >System, or the AppleEvent manager loaded this thing into MY heap? After that
  13590. >I went and marked the thing purgeable since if it was going to be happening
  13591. >on a regular basis, without me knowing, I didn't want it hanging around when
  13592. >I needed the memory for something else. But Jon is saying I shouldn't mark it
  13593. >purgeable.
  13594. >
  13595. >What's the story here?
  13596.  
  13597. If you mark the 'aete' purgeable, Script Editor (and some script editing
  13598. alternatives) will sometimes "lose" parts of the "Dictionary".  Sometimes
  13599. all of it, sometimes just the headers, sometimes it keeps just the keywords
  13600. without the descriptions.  None of those is useful.
  13601.  
  13602. One would hope that when AppleScript is finished with the 'aete' in your
  13603. heap, AppleScript will release it.  No guarantees (one would have hoped
  13604. that Script Editor could deal with purgeable 'aete' resources, too).
  13605.  
  13606. AppleScript installs a System event handler for the Get AETE event.  So, in
  13607. effect, your app has a handler for that event, and it would appear to load
  13608. the resource into your heap (it almost has to do it that way, since it
  13609. can't reach into your resource fork directly across the network).
  13610.  
  13611.    --John
  13612.  
  13613. --
  13614. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13615. =========================================================================
  13616. Date:         Mon, 14 Nov 1994 12:36:02 +0000
  13617. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13618. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13619. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  13620. Subject:      Re: I see troubles
  13621.  
  13622. >Unless, of course, someone has actually gotten a Nisus message who isn't
  13623. >subscribed to the Nisus mailing list.....
  13624. >
  13625. >pf
  13626.  
  13627. That would be me. I don't even know what this Nisus list is...
  13628.  
  13629. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  13630.          www server: http://josaiah.sewanee.edu/
  13631.         Elomense(MUD): josaiah.sewanee.edu 1999
  13632. =========================================================================
  13633. Date:         Mon, 14 Nov 1994 12:42:13 -0600
  13634. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13635. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13636. From:         Steve Alex <steve_alex@AIDT.EDU>
  13637. Subject:      Cron and AppleScript
  13638.  
  13639. Rather than have a script application stay open and have an idle handler do
  13640. something a couple times a day, I've been using Chris Johonson's Cron to
  13641. launch the script application. This has worked on a couple of scripts, but
  13642. I've run into a problem with a script that loads and saves a script object.
  13643.  
  13644. All I wanted to do is check a mailbox, see if any new mail has arrived,
  13645. process it, reset the lastChecked date and exit. The processing and all
  13646. that works, but I had trouble (because of a bug) with the lastChecked
  13647. property . I initially tried:
  13648.  
  13649.   Property lastChecked : date "11/11/94"
  13650.     -- process stuff
  13651.   set lastChecked to Current Date
  13652.  
  13653. This was saved as a application (no startup screen and quit when complete).
  13654. My bug made it appear that the lastChecked property never got set to the
  13655. current date. The next attempt was to use Cron and the load/store script
  13656. extensions. In the preferences folder, I saved the property statement above
  13657. in a compiled script "LastPrint". The following is an extract of my code,
  13658. modifed to try to find the problem:
  13659.  
  13660.   set fn to (path to preferences folder as string) & "lastPrint" as alias
  13661.   set scrpt to load script fn
  13662.     -- process here
  13663.   set lastChecked of scrpt to current date
  13664.   store script scrpt in fn replacing yes
  13665.   display dialog (lastChecked of d as string)
  13666.  
  13667. If I save the above code as an application and double click it it works
  13668. fine. If I launch it from Cron with:
  13669.  
  13670.  9 10 * * * nobody   appName
  13671.  
  13672.  
  13673. I get an AS error dialog box with "The variable fn is not defined". If you
  13674. choose the edit option, the error points to fn in the "store script" line.
  13675. I got my original solution to work, but wonder why this is not working.
  13676. I've cc'd Chris with this.
  13677.  
  13678.  
  13679.  
  13680.  
  13681. Steve Alex                                 (steve_alex@aidt.edu)
  13682.  
  13683.       _/_/_/     _/   _/_/_/_/    _/_/_/_/  Alabama Industrial
  13684.    _/      _/   _/   _/      _/    _/       Development Training
  13685.   _/_/_/_/_/   _/   _/      _/    _/        75 TechnaCenter Dr.
  13686.  _/      _/   _/   _/      _/    _/         Montgomery AL, 36117
  13687. _/      _/   _/   _/_/_/_/      _/          (205) 242-2675
  13688. =========================================================================
  13689. Date:         Mon, 14 Nov 1994 10:44:49 -0800
  13690. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13691. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13692. From:         Kevin Purcell <kevinpu@ATM.COM>
  13693. Subject:      Re: Frontier Address Self-ident
  13694.  
  13695. >        Reply to:   Frontier Address Self-identity
  13696. >  Does anyone know a way of having a Frontier script ask what it's own name
  13697. >is?
  13698. >  For example, if a script located at root.scratchpad.testscript is running,
  13699. >how can I get it to return "testscript"
  13700. >  I want to achieve this so that I can write a generic script that will act
  13701. >on a file whose name matches the script name.  A date flag also would match
  13702. >the file name.
  13703. >
  13704. >Thanks ahead of time...
  13705. >
  13706. >--Richard Petty
  13707. >rwvr90@email.sps.mot.com
  13708. >
  13709. >Motorola
  13710. >Austin, Texas
  13711.  
  13712. Some suggestions:
  13713.  
  13714. You could add a name property to the application script, make that the same
  13715. name as the script name.
  13716.  
  13717. Or add a handler, say MyName, which gets the path to me and returns the
  13718. last chunk of the path
  13719.  
  13720. Or both run the MyName() in the run handler and set your name property to
  13721. the result.
  13722.  
  13723. Kevin Purcell      Attachmate Corp        (206) 649-6489
  13724. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  13725. =========================================================================
  13726. Date:         Mon, 14 Nov 1994 10:46:34 -0800
  13727. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13728. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13729. From:         Kevin Purcell <kevinpu@ATM.COM>
  13730. Subject:      Re: Frontier Address Self-ident
  13731.  
  13732. My mind is going -- I see anything beginning with an "F" I think it means
  13733. FaceSpan/Frontmost.
  13734.  
  13735. Its as bad as John Baxter and the Scriptable Finder (the other F word!) :-)
  13736.  
  13737. Apologies (but it was a good tip!).
  13738.  
  13739. Kevin Purcell      Attachmate Corp        (206) 649-6489
  13740. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  13741. =========================================================================
  13742. Date:         Mon, 14 Nov 1994 10:40:16 U
  13743. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13744. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13745. From:         Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  13746. Subject:      RE-Creating a new record wi
  13747.  
  13748.                        Subject:                               Time:9:46
  13749.   OFFICE MEMO          RE:Creating a new record with data in  Date:11/14/94
  13750. If you want to fill out all the fields in thernew record then you can set the
  13751. data to layout 0 (layout 0 is a conceptual layout consisting of all the
  13752. fields defined in the database, the fields are ordered according to their
  13753. creation order).  On layouts other than layout 0 the data will also be set to
  13754. the fields according to their creation order however data will only be set
  13755. into the fields that actually exist on that layout.
  13756.  
  13757. Layout 0 has all fields in creation order.
  13758. Layout nth Layout has the fields that exist on that layout in creation order.
  13759.  
  13760. Stephen
  13761. =========================================================================
  13762. Date:         Tue, 15 Nov 1994 08:47:00 +1300
  13763. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13764. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13765. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  13766.               NZ" <LDO@WAIKATO.AC.NZ>
  13767. Subject:      Re: "Get Terminology" event question
  13768.  
  13769. WalrathW <walrathw@RFERL.ORG> asks:
  13770.  
  13771. >While on the subject, I noticed something I thought was kind of odd over the
  13772. >weekend. I have a background only scriptable app. I was sending it some
  13773. >events from a script running on another machine across the network, and at
  13774. >the same time snooping through the app's memory with Zone Ranger. All of a
  13775. >sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
  13776. >don't support the get terminology event though. Is it possible that the
  13777. >System, or the AppleEvent manager loaded this thing into MY heap?
  13778.  
  13779. You only need to supply an explicit handler for the get-terminology event
  13780. if you have dynamic terminology (for example, loaded from extensions).
  13781. AppleScript supplies a default systemwide handler for this event, that loads
  13782. your aete and passes a copy of it back to the requestor. This would be what
  13783. you're seeing happening.
  13784.  
  13785. > After that
  13786. >I went and marked the thing purgeable since if it was going to be happening
  13787. >on a regular basis, without me knowing, I didn't want it hanging around when
  13788. >I needed the memory for something else. But Jon is saying I shouldn't mark it
  13789. >purgeable.
  13790.  
  13791. Jon also made it clear that the purgeability problem is a bug in AppleScript.
  13792.  
  13793. Clearly, for now, you should not make your aete purgeable. If you're worried
  13794. about the space it's taking up (and I doubt it's very big), you could always
  13795. define your own get-terminology handler, which will return a copy of your
  13796. aete and then make it purgeable or call ReleaseResource on it, to free up the
  13797. memory.
  13798.  
  13799. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  13800. Computer Services Dept                     fax: +64-7-838-4066
  13801. University of Waikato            electric mail: ldo@waikato.ac.nz
  13802. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  13803. =========================================================================
  13804. Date:         Tue, 15 Nov 1994 08:52:00 +1300
  13805. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13806. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13807. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  13808.               NZ" <LDO@WAIKATO.AC.NZ>
  13809. Subject:      Re: Accessing the OSA from C
  13810.  
  13811. Deirdre Saoirse-Savino <Deeny3@AOL.COM> asks:
  13812.  
  13813. >OK, I see the book on how to do the OSACompile and all that.
  13814. >
  13815. >How do I check if these traps are available? There doesn't seem to be a
  13816. >Gestalt selector for same, nor can I find a way of checking directly.
  13817.  
  13818. Those are all Component Manager calls. First you check if the Component Manager
  13819. is present, and if that is true then you do an OpenDefaultComponent on the
  13820. scripting component type of your choice, and if that succeeds you can do
  13821. all the appropriate OSA calls with that component instance.
  13822.  
  13823. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  13824. Computer Services Dept                     fax: +64-7-838-4066
  13825. University of Waikato            electric mail: ldo@waikato.ac.nz
  13826. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  13827. =========================================================================
  13828. Date:         Mon, 14 Nov 1994 16:37:12 -0500
  13829. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13830. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13831. From:         Stonewall Ballard <stoney@CAMBRIDGE.APPLE.COM>
  13832. Subject:      Need item bounds including name
  13833.  
  13834. I'm trying to get the bounding box of a desktop item. I can ask the
  13835. scriptable Finder:
  13836.  
  13837. tell application "Finder" to get bounds of item "SomeItemName"
  13838.  
  13839. Unfortunately, the rectangle returned doesn't include the item's name. Is
  13840. there any way to get the bounds of an item's name? Is there an addition
  13841. lying around that will return this?
  13842.  
  13843. In case I'm on the wrong track, I'm writing a script that neatens up my
  13844. desktop icons when I switch screen sizes. I normally keep a bunch of
  13845. aliases on the bottom of my screen, and want to put them in nice orderly
  13846. rows, preferably with the names abutting. The script I have so far will
  13847. neaten them up only vertically. It also saves their old positions for a
  13848. particular desktop size, and restores them on demand.
  13849.  
  13850. Thanks for any help.
  13851.  
  13852.  
  13853. ______________________________________________________________________________
  13854. Stonewall Ballard                               Cambridge Engineering
  13855. stoney@cambridge.apple.com                      Apple Computer, Inc.
  13856. =========================================================================
  13857. Date:         Mon, 14 Nov 1994 13:45:22 PST
  13858. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13859. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13860. From:         Joe Scripter <MikeL@EWORLD.COM>
  13861. Subject:      Re: Gaea down?
  13862.  
  13863.  >I can't seem to be able to get into gaea since yesterday morning. The
  13864. >error I get is:  "452 Can't create data socket (129.237.140.40,20):
  13865. >Interrupted system call."
  13866.  
  13867. I have had the same problem about creating data sockets as well....It might
  13868. just be that it has to many connections at he time.
  13869.  
  13870.  
  13871. -Mike Lennon
  13872. =========================================================================
  13873. Date:         Mon, 14 Nov 1994 16:50:38 -0500
  13874. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13875. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13876. From:         Eric Bickford <EricBB@AOL.COM>
  13877. Subject:      Re: FMP and MacHTTPD
  13878.  
  13879. >>Has anybody written a hamster to connect MacHTTPD to >>FileMaker Pro for
  13880. doing something simple like returning >>records with a field that contains
  13881. and entry
  13882. >>in a HTML form?
  13883.  
  13884. I don't know if this is what you're after, but it still might be useful.
  13885.  
  13886. I use FMPro calculation fields to generate HTML with ancors. In this way I
  13887. don't have to wait for AppleScript to create the HTML. A key point, though,
  13888. is to create a field called Double Quotes that you insert in the calculation
  13889. field to get HTML that contains double quotes.
  13890.  
  13891. Eric Bickford
  13892. ebickfor@rd.raychem.com
  13893. =========================================================================
  13894. Date:         Mon, 14 Nov 1994 17:27:22 EST
  13895. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13896. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13897. From:         David Lloyd <100046.3512@COMPUSERVE.COM>
  13898. Subject:      Move to Trash
  13899.  
  13900. This, the simplest of scripts, moves files to the trash:
  13901.  
  13902.  
  13903.     tell application "Finder" to move selection to trash
  13904.  
  13905.  
  13906. But by using Keyquencer to run the script via a key command,
  13907. it moves a selected file to the trash *and* also deletes the file from the
  13908. trash.
  13909. (Any other files in the trash remain there.)
  13910. Does anyone know why this is ?
  13911.  
  13912. Dave L.
  13913. =========================================================================
  13914. Date:         Mon, 14 Nov 1994 14:59:43 -0800
  13915. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13916. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13917. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13918. Subject:      Re: Accessing the OSA from C
  13919.  
  13920. >OK, I see the book on how to do the OSACompile and all that.
  13921. >
  13922. >How do I check if these traps are available? There doesn't seem to be a
  13923. >Gestalt selector for same, nor can I find a way of checking directly.
  13924.  
  13925. I provided a completely bogus answer a few minutes ago.  Ignore it, and go
  13926. with Mike Cohen's correct answer.  [There really is a difference between
  13927. "OSA" and "OSL".]
  13928.  
  13929.    --John
  13930.  
  13931. --
  13932. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  13933. =========================================================================
  13934. Date:         Mon, 14 Nov 1994 16:10:56 -0800
  13935. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13936. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13937. From:         Doug Baron <userland@NETCOM.COM>
  13938. Subject:      Re: Frontier Address Self-ident
  13939.  
  13940. >        Reply to:   Frontier Address Self-identity
  13941. >  Does anyone know a way of having a Frontier script ask what it's own name
  13942. >is?
  13943. >  For example, if a script located at root.scratchpad.testscript is running,
  13944. >how can I get it to return "testscript"
  13945. >  I want to achieve this so that I can write a generic script that will act
  13946. >on a file whose name matches the script name.  A date flag also would match
  13947. >the file name.
  13948. >
  13949. >Thanks ahead of time...
  13950. >
  13951. >--Richard Petty
  13952. >rwvr90@email.sps.mot.com
  13953. >
  13954. >Motorola
  13955. >Austin, Texas
  13956.  
  13957. Richard,
  13958.  
  13959. A UserTalk script can't get its name like that. But a normal desktop script
  13960. can get the full path to itself by accepting the value as a paramter:
  13961.  
  13962.         on myScript (path)
  13963.                 <do stuff>
  13964.  
  13965. or by examining the value system.deskscripts.path. IOW, a desktop script
  13966. can be generic, and operate based on its file name. But for a script that
  13967. lives in the database to be generic, it must take a parameter of some sort.
  13968.  
  13969. Doug
  13970. =========================================================================
  13971. Date:         Tue, 15 Nov 1994 13:18:00 +1300
  13972. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13973. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13974. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  13975.               NZ" <LDO@WAIKATO.AC.NZ>
  13976. Subject:      Re: Accessing the OSA from C
  13977.  
  13978. "John W. Baxter" <jwbaxter@OLYMPUS.NET> writes:
  13979.  
  13980. >The Gestalt selector is gestaltAppleEventsAttr ('evnt')
  13981. >
  13982. >If bit number 2  (1 << gestaltOSLInSystem) is set, the OSA trap is
  13983. >available (or the right shared library is in place on a Power Mac).
  13984.  
  13985. There is no OSA trap. And apart from both being built on top of AppleEvents,
  13986. the OSL and OSA have relatively little to do with each other. The OSL is the
  13987. Object Support Library, which is a bunch of code that applications can use
  13988. to support the AppleEvent Object Model, which makes them nice to work with from
  13989. AppleScript. OSA is the Open Scripting Architecture, which allows plug-in
  13990. scripting languages, one of which happens to be AppleScript.
  13991.  
  13992. Clear as mud...?
  13993. =========================================================================
  13994. Date:         Mon, 14 Nov 1994 18:43:27 -0800
  13995. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13996. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  13997. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  13998. Subject:      Re: Frontier Address Self-ident
  13999.  
  14000. >        Reply to:   Frontier Address Self-identity
  14001. >  Does anyone know a way of having a Frontier script ask what it's own name
  14002. >is?
  14003. >  For example, if a script located at root.scratchpad.testscript is running,
  14004. >how can I get it to return "testscript"
  14005. >  I want to achieve this so that I can write a generic script that will act
  14006. >on a file whose name matches the script name.  A date flag also would match
  14007. >the file name.
  14008. >
  14009.  
  14010. It's not possible....it is already on the wish list, however.  For the
  14011. moment, you would simply have to hard code a string (or database
  14012. address...essentially the same thing) and return that, remembering to
  14013. change it when you move things around.
  14014.  
  14015.    --John
  14016.  
  14017. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  14018.   UserLand Software support
  14019. =========================================================================
  14020. Date:         Mon, 14 Nov 1994 22:05:07 -0500
  14021. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14022. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14023. From:         William Moss <gt0831c@PRISM.GATECH.EDU>
  14024. Subject:      Various Questions
  14025.  
  14026. Is it possible to open a "stationery pad" from the scriptable finder in the
  14027. manner which creates a duplicate of the document and keeps the original
  14028. intact? Every time I attempt to "open" a filename it displays the notice
  14029. that the user is editing the original item and not a duplicate.  In other
  14030. words it's giving me the Standard File Open behaviour when I want the
  14031. double click in the finder behaviour.  Any ideas to force this second open
  14032. method?
  14033.  
  14034.  
  14035. _____ William Moss                _____
  14036. _____ 24899 Georgia Tech Station  _____
  14037. _____ Atlanta, GA 30332           _____
  14038. _____ gt0831c@prism.gatech.edu    _____
  14039. =========================================================================
  14040. Date:         Mon, 14 Nov 1994 19:25:58 -0800
  14041. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14042. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14043. From:         "Alex L. Bangs" <bangs@NETCOM.COM>
  14044. Subject:      Literal AppleEvents
  14045.  
  14046. FYI, I have seen some discussion about how to do literal AppleEvents in
  14047. AppleScript. Just thought I'd pass it along, from the AppleScript Language
  14048. Guide (pp 83-84; if you forget where to find it, look in the index under
  14049. "<< >>")
  14050.  
  14051. The form is:
  14052.   <<event aevtodoc>>
  14053. Where the << >> are single characters formed by using opt-\ and shift-opt-\
  14054. (I didn't use the single chars here since I didn't think it would make it
  14055. through the mailer). The "event" word is literal, then you have eight
  14056. characters, the first four of which are the suite and the second four are
  14057. the event code. Don't know about doing parameters, tho. BTW, if you do type
  14058. in the above in the script editor, it will change the string from the above
  14059. into "open".
  14060.  
  14061. Alex L. Bangs
  14062. bangs@netcom.com/work (415) 854-9000/home (415) 966-8377
  14063. =========================================================================
  14064. Date:         Mon, 14 Nov 1994 21:23:40 +0000
  14065. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14066. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14067. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  14068. Subject:      Re: Gaea down?
  14069.  
  14070. >I have had the same problem about creating data sockets as well....It might
  14071. >just be that it has to many connections at he time.
  14072. >
  14073. >
  14074. >-Mike Lennon
  14075.  
  14076. I can get in fine now. Must have been some wierd thing.
  14077.  
  14078. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  14079.          www server: http://josaiah.sewanee.edu/
  14080.         Elomense(MUD): josaiah.sewanee.edu 1999
  14081. =========================================================================
  14082. Date:         Mon, 14 Nov 1994 21:29:02 +0000
  14083. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14084. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14085. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  14086. Subject:      Re: FMP and MacHTTP (was Re: FMP and MacHTTPD)
  14087.  
  14088. This has nothing to do witht this particular discussion, but has bothered
  14089. me since this thread was posted. The application is MacHTTP, not MacHTTPD.
  14090. Sorry, but as I am slowly but surely becoming a computer myself, exactness
  14091. is key ;=AC)
  14092.  
  14093. Just my late night $53,000.02
  14094.  
  14095. (P.S. this is not meant as a flame or anything of the sort. Just pointing
  14096. it out!:=AC))
  14097.  
  14098. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  14099.          www server: http://josaiah.sewanee.edu/
  14100.         Elomense(MUD): josaiah.sewanee.edu 1999
  14101. =========================================================================
  14102. Date:         Mon, 14 Nov 1994 22:02:48 -0800
  14103. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14104. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14105. From:         Brian Hall <mspace@NETCOM.COM>
  14106. Subject:      "Stationery Pad"
  14107.  
  14108. >Is it possible to open a "stationery pad" from the scriptable finder in the
  14109. >manner which creates a duplicate of the document and keeps the original
  14110. >intact? Every time I attempt to "open" a filename it displays the notice
  14111. >that the user is editing the original item and not a duplicate.  In other
  14112. >words it's giving me the Standard File Open behaviour when I want the
  14113. >double click in the finder behaviour.  Any ideas to force this second open
  14114. >method?
  14115.  
  14116. Most apps do not have the "stationary aware" bit set. ie, they actually
  14117. don't know anything about pads - the finder just makes it look that way.
  14118. When you send an event right to the app, you bypass that clever part of the
  14119. finder.
  14120.  
  14121. To simulate this, you might sending an "open selection" event to the finder
  14122. rather than an "open document" event to the application.
  14123.  
  14124. __________________________________________________________________________
  14125. Mark/Space Softworks                                    voice 408-293-7299
  14126. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  14127. San Jose, CA 95113                                        bbs 408-293-7290
  14128.  
  14129. Macintosh connectivity software:               Internet: mspace@netcom.com
  14130. Communicate, CTB Tools, PageNOW!                 AppleLink, AOL: MARKSPACE
  14131.                   Goodies at ftp.netcom.com in pub/mspace
  14132. =========================================================================
  14133. Date:         Mon, 14 Nov 1994 22:02:43 -0800
  14134. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14135. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14136. From:         Brian Hall <mspace@NETCOM.COM>
  14137. Subject:      Re: "Get Terminology" event question
  14138.  
  14139. >While on the subject, I noticed something I thought was kind of odd over the
  14140. >weekend. I have a background only scriptable app. I was sending it some
  14141. >events from a script running on another machine across the network, and at
  14142. >the same time snooping through the app's memory with Zone Ranger. All of a
  14143. >sudden I noticed a Handle with my aete resource in it loaded into my Heap. I
  14144. >don't support the get terminology event though. Is it possible that the
  14145. >System, or the AppleEvent manager loaded this thing into MY heap? After that
  14146. >I went and marked the thing purgeable since if it was going to be happening
  14147. >on a regular basis, without me knowing, I didn't want it hanging around when
  14148. >I needed the memory for something else. But Jon is saying I shouldn't mark it
  14149. >purgeable.
  14150.  
  14151. Don't.  It will really confuse Script Editor.
  14152.  
  14153. It used to be that an app had to support the "Get Terminology" event if
  14154. people were to be able to write:
  14155. tell application "foo" of machine "bar"
  14156.   whatever
  14157. end tell
  14158.  
  14159. So that SE could syntax check.
  14160.  
  14161. I dont' know of any apps that *so* support this event, so as a scripter you
  14162. had some unsavory ways to work around this problem.
  14163.  
  14164. System 7.5 to the rescue:
  14165. It seems that the version of AppleScript that ships with 7.5 must install a
  14166. system wide handler for this event, so even if the target app *does not*
  14167. support the GT event, the extension will suck the resource out the app and
  14168. pass it back for you. This is mostly a good thing.  The only apps that
  14169. should mind are those that have dynamic 'aete' - and are there any yet?
  14170.  
  14171. A side effect of this may be that if the app *is running* on that remote
  14172. machine, perhaps it would load the resource in that heap? (A guess)
  14173.  
  14174. __________________________________________________________________________
  14175. Mark/Space Softworks                                    voice 408-293-7299
  14176. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  14177. San Jose, CA 95113                                        bbs 408-293-7290
  14178.  
  14179. Macintosh connectivity software:               Internet: mspace@netcom.com
  14180. Communicate, CTB Tools, PageNOW!                 AppleLink, AOL: MARKSPACE
  14181.                   Goodies at ftp.netcom.com in pub/mspace
  14182. =========================================================================
  14183. Date:         Tue, 15 Nov 1994 03:14:41 -0500
  14184. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14185. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14186. From:         John Dunning <jdunning@PHOENIX.PRINCETON.EDU>
  14187. Subject:      MountVolume documentation?
  14188.  
  14189. I need to mount a disk in a script.  I've seen the MountVolume command in
  14190. some scripts posted here, but I can't find any information on it in the
  14191. documentation I have (Language Guide, Tao of AS).  I've got the Scriptable
  14192. Finder, but the command doesn't seem to be in its dictionary.  What
  14193. scripting addition do I need to use MountVolume?
  14194.  
  14195. On a related note, is there any way to determine which dictionary a
  14196. particular command is in when it's entered into the Script Editor?
  14197.  
  14198. Thanks,
  14199.  
  14200.  
  14201. John
  14202.  
  14203. ______________________________________________________________________________
  14204. John Dunning                                    jdunning@phoenix.princeton.edu
  14205. =========================================================================
  14206. Date:         Tue, 15 Nov 1994 00:15:58 -0800
  14207. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14208. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14209. From:         Jon Pugh <jonpugh@NETCOM.COM>
  14210. Subject:      Re: Get a life, Jon.
  14211.  
  14212. WalrathW <walrathw@RFERL.ORG> wrote:
  14213. >
  14214. >> >Yeah, Jon, Get a life! ....  ;-)
  14215. >>
  14216. >> I've got one.  I just spent opening day at Squaw Valley amidst a very nice
  14217. >> snowstorm and plenty of powder.  It's about the only pasttime better than
  14218. >> hacking.  ;)
  14219. >
  14220. >But you undoubtedly took your PB with you, didn't you, just in case you
  14221. >couldn't find any action in the bars!  ;-)  I remember an old message you
  14222. >sent where you were sitting in a bar watching the SuperBowl and working on
  14223. >your popup menu XCMD....  I've hacked on planes, in parks, and moving
  14224. >vehicles (when someone else was driving), but not yet in a bar. That would
  14225. >surely blow my cover! :)
  14226.  
  14227. My cover was blown years ago.  The real warning sign is that you remember
  14228. that incident though.  I'd banged my knee on a late afternoon mogul the day
  14229. before at Mount Rose, so I was hanging out in the bar at Alpine Meadows
  14230. (right next to Squaw) while my friends skied.  I thought the weirdest part
  14231. was how normal it all was.  No one even blinked.  The young lady sitting
  14232. next to me even remarked that my PowerBook 140 was "fresh".  Not these
  14233. days.  :(  I wonder what she'd think of my clear cased Newton.
  14234.  
  14235. For the record though, I had no computer with me this time.  ;)
  14236.  
  14237. Jon
  14238.  
  14239. PS
  14240.  
  14241. Just so that this meets the charter, I'm now working out how to run
  14242. AppleScripts from my Newton.  The real trick will be to get a beaming
  14243. station for my Mac.
  14244. =========================================================================
  14245. Date:         Tue, 15 Nov 1994 00:16:05 -0800
  14246. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14247. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14248. From:         Jon Pugh <jonpugh@NETCOM.COM>
  14249. Subject:      Re: "Get Terminology" event question
  14250.  
  14251. >What's the story here?
  14252.  
  14253. Both Lawrence and John mentioned most of these points, but I wrote this up
  14254. before I read their replies and I have a couple of little things to add.
  14255. Besides, repetition improves comprehension.  ;)
  14256.  
  14257. Here's the story.  AppleScript wants your aete so that it can compile your
  14258. AppleScripts.  It calls OSAGetAppTerminology which returns a copy of your
  14259. aete resource.  How does it get this?
  14260.  
  14261. If you aren't running and are on the same machine, AppleScript opens your
  14262. app up and simply snags the appropriate aete resource and returns that.
  14263. The real trick comes if you are running or if you are on another machine.
  14264. Then it sends a GetTerminology event to your app.  Since you have never
  14265. heard of this event, your app returns errAEEventNotHandled, and the system
  14266. handler that AppleScript installed gets called.  Since it is running in
  14267. your app, it simply calls GetResource and it has your aete.  It returns the
  14268. aete and goes back to wherever uncalled handlers hang out.
  14269.  
  14270. So, yes, your aete can be loaded into memory at any time.  Yes, you should
  14271. make it purgeable to minimize this potential memory problem.  BUT, there is
  14272. a bug in the Script Editor where you get a blank dictionary window
  14273. sometimes when viewing a purgeable aete.  This leads me to recommend not
  14274. making your aete purgeable until there is a fix for this.  Some might
  14275. consider that fix to be a different script editor, and that's one of my
  14276. choices, but apps for distribution probably should expect to have their
  14277. aete resources loaded.
  14278.  
  14279. As I noted though, there are a number of apps which have purgeable aete
  14280. resources, including Apple's Hypercard and PhotoFlash, so you'd be in good
  14281. company.  The point of my note which started this was to remind any
  14282. developers reading that they should be able to deal with a purgeable handle
  14283. there.  I think it's a better solution that marking all aete resources as
  14284. unpurgeable.
  14285.  
  14286. The real problem with this system handler technique is that it's a great
  14287. way for a virus to infect a program since most virus checkers won't spot
  14288. this "legal" resource call which an app appears to be making on itself.  It
  14289. would still have to get loaded and run first though.
  14290.  
  14291. Jon
  14292. =========================================================================
  14293. Date:         Tue, 15 Nov 1994 08:39:11 -0600
  14294. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14295. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14296. From:         Fred Terry <pfterry@LKS.CSI.COM>
  14297. Subject:      Re: MountVolume documentation?
  14298. In-Reply-To:  Your message of "Tue, 15 Nov 94 03:14:41 EST"
  14299.  
  14300. John,
  14301.  
  14302. >I need to mount a disk in a script.  I've seen the MountVolume command in
  14303. >some scripts posted here, but I can't find any information on it in the
  14304. >documentation I have (Language Guide, Tao of AS).  I've got the Scriptable
  14305. >Finder, but the command doesn't seem to be in its dictionary.  What
  14306. >scripting addition do I need to use MountVolume?
  14307.  
  14308. You'll find MountVol on gaea.kgs.ukans.edu in
  14309.  
  14310. ftp://gaea.kgs.ukans.edu/applescript/osaxen/MountVolosax.hqx
  14311.  
  14312. >On a related note, is there any way to determine which dictionary a
  14313. >particular command is in when it's entered into the Script Editor?
  14314.  
  14315. You can search through all of your osaxen individual or use the EightyLister
  14316. osaxen to build an inventory of your osaxen. You'll also find a database of
  14317. commands which might contain it. It's in
  14318.  
  14319. ftp://gaea.kgs.ukans.edu/applescript/osaxen/OSAXenDB.sit.hqx
  14320.  
  14321. The database requires FileMaker Pro.
  14322.  
  14323. Cheers.
  14324.  
  14325. pf
  14326. =========================================================================
  14327. Date:         Tue, 15 Nov 1994 15:57:21 GMT
  14328. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14329. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14330. From:         Martin Jean <jeanm@TEMPETE.WUL.QC.DOE.CA>
  14331. Subject:      Unable to open dictionnary
  14332.  
  14333. I am new to AppleScript and I have a problem. When I choose the "Open
  14334. Dictionnary ..." in the File menu of Script Editor, I get an error message
  14335. that said "Could not read the dictionnary of the application of extension
  14336. because the required resources were not found."
  14337.  
  14338. What do I need to be able to open dictionnaries.
  14339.  
  14340. BTW, I got AppleScript 1.0 from Goodman's book, and I found a copy of
  14341. version 1.1. What are the differences? Could it explain my problem (I think
  14342. it workd well with version 1.0)?
  14343.  
  14344. Thank you
  14345.  
  14346. ----------------------------------------------------------
  14347. Martin Jean                                 ------------
  14348. Centre Saint-Laurent                       | ---------- |
  14349. Environnement Canada                       ||          ||
  14350. 105, rue McGill, 4e etage                  ||          ||
  14351. Montreal (Quebec)                          ||          ||
  14352. H2Y 2E7                                    ||          ||
  14353. Tel.: (514) 496-2661                       | ---------- |
  14354. Fax.: (514) 283-9451                       |        --- |
  14355. Internet  : jeanm@tempete.wul.qc.doe.ca    |            |
  14356.                                             ------------
  14357. ----------------------------------------------------------
  14358. =========================================================================
  14359. Date:         Tue, 15 Nov 1994 09:03:29 -0800
  14360. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14361. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14362. From:         Mike Cohen <isis@NETCOM.COM>
  14363. Subject:      Re: Get a life, Jon.
  14364.  
  14365. At 12:15 AM 11/15/94, Jon Pugh wrote:
  14366. >
  14367. >My cover was blown years ago.  The real warning sign is that you remember
  14368. >that incident though.  I'd banged my knee on a late afternoon mogul the day
  14369. >before at Mount Rose, so I was hanging out in the bar at Alpine Meadows
  14370. >(right next to Squaw) while my friends skied.  I thought the weirdest part
  14371. >was how normal it all was.  No one even blinked.  The young lady sitting
  14372. >next to me even remarked that my PowerBook 140 was "fresh".  Not these
  14373. >days.  :(  I wonder what she'd think of my clear cased Newton.
  14374. >
  14375. I don't ski, but I've heard that the area we're moving to in Wyoming has
  14376. great skiing.
  14377.  
  14378. >For the record though, I had no computer with me this time.  ;)
  14379. >
  14380. >Jon
  14381. >
  14382. >PS
  14383. >
  14384. >Just so that this meets the charter, I'm now working out how to run
  14385. >AppleScripts from my Newton.  The real trick will be to get a beaming
  14386. >station for my Mac.
  14387.  
  14388. There's a product (I forget the name offhand, but there was an article
  14389. about it in the last issue of PIE Developer) that lets you imbed
  14390. AppleScripts in a newton app and run it through a server running on a mac.
  14391. You can also use my company's Flash-Data to trigger an AppleScript in
  14392. Flash-Link.
  14393.  
  14394. _______________________________________________________________
  14395. Mike Cohen           | ISIS International
  14396. (818) 788-4747 Voice | isis@netcom.com           | ALink: D6734
  14397. (818) 501-0653 Fax   | NewtonMail, eWorld: MikeC | AOL: MikeC20
  14398. Home Page: ftp://ftp.netcom.com/pub/isis/home.html
  14399. =========================================================================
  14400. Date:         Tue, 15 Nov 1994 12:24:10 -0500
  14401. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14402. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14403. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  14404. Subject:      Sending raw events to FaceSpan
  14405.  
  14406. Excuse the repeat of this question but I have still not been able to find
  14407. an answer and wanted to take a shot at asking again:
  14408.  
  14409. Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  14410. the kind sent from Filemaker ie. an event class and an event id)?
  14411.  
  14412. I can send event from Filemaker to an applet created with the script editor
  14413. but not to an applet created with FaceSpan.
  14414.  
  14415. Any help our suggestions would be most appreciated.
  14416. Thanks in advance.
  14417.  
  14418. Mark Hadfield
  14419. hadfield@sickkids.on.ca
  14420. The Hospital For Sick Children
  14421. =========================================================================
  14422. Date:         Tue, 15 Nov 1994 09:26:26 -0800
  14423. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14424. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14425. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14426. Subject:      Re: "Get Terminology" event question
  14427.  
  14428. At 22:02 11/14/94, Brian Hall wrote:
  14429. >It seems that the version of AppleScript that ships with 7.5 must install a
  14430. >system wide handler for this event, so even if the target app *does not*
  14431. >support the GT event, the extension will suck the resource out the app and
  14432. >pass it back for you. This is mostly a good thing.  The only apps that
  14433. >should mind are those that have dynamic 'aete' - and are there any yet?
  14434.  
  14435. It's a standard system handler, which only gets called if the application
  14436. says it didn't handle the getAETE event (errAEEventNotHandled).  So it
  14437. doesn't get in the way of applications which do handle the event.
  14438.  
  14439.    --John
  14440.  
  14441. --
  14442. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14443. =========================================================================
  14444. Date:         Tue, 15 Nov 1994 12:50:26 -0500
  14445. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14446. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14447. From:         John Schettino <js12@GTE.COM>
  14448. Subject:      Re: Sending raw events to FaceSpan
  14449.  
  14450. >Excuse the repeat of this question but I have still not been able to find
  14451. >an answer and wanted to take a shot at asking again:
  14452. >
  14453. >Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  14454. >the kind sent from Filemaker ie. an event class and an event id)?
  14455. >
  14456. >I can send event from Filemaker to an applet created with the script editor
  14457. >but not to an applet created with FaceSpan.
  14458. >
  14459. >Any help our suggestions would be most appreciated.
  14460. >Thanks in advance.
  14461.  
  14462. well, you have the seeds to a work-around!
  14463.  
  14464. Just make an applet in AppleScript to receive these events, and then send
  14465. them to the FaceSpan app via "tell" statements... that should work.
  14466.  
  14467. - john
  14468.  
  14469. -----------------------------------------
  14470. js12@gte.com             GTE Laboratories
  14471. John Schettino                Waltham, MA
  14472. =========================================================================
  14473. Date:         Tue, 15 Nov 1994 10:03:37 -0800
  14474. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14475. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14476. From:         David Lewis <lewis@NETCOM.COM>
  14477. Subject:      Frontier: dialog.runModeless question
  14478.  
  14479. Hi,
  14480.  
  14481. So I wanted my Frontier customStartup script, which usually asks if I want
  14482. Eudora started, to automatically answer in the affirmative if I haven't
  14483. responded in thirty seconds. No problem, eh? Just take the code used in
  14484. dialog.twoWay and duplicate it using dialog.runModeless instead of
  14485. dialog.run. The problem is that dialog.run is kind enough to center the
  14486. dialog in the screen when it draws it, but dialog.runModeless puts it up at
  14487. 0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
  14488. depending on whether it's docked or undocked. Thanks.
  14489.  
  14490.     David
  14491.  
  14492. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  14493. =========================================================================
  14494. Date:         Tue, 15 Nov 1994 13:52:14 -0600
  14495. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14496. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14497. From:         flip <flip@BOGIE2.BIO.PURDUE.EDU>
  14498. Subject:      FMP & Picture Fields
  14499.  
  14500. >Date:    Sat, 12 Nov 1994 09:41:31 -0500
  14501. >From:    Charles Bruce Pelto <CPelto@AOL.COM>
  14502. >Subject: FMP & Picture Fields
  14503. >
  14504. >How does one get a picture field out of FMP in an applescript?
  14505. >
  14506. >I've tried this with...
  14507. >
  14508. >tell application "FileMaker Pro"
  14509. >     copy cellValue of cell "Picture" to thePicture
  14510. >end tell
  14511. >
  14512. >...which doesn't work.
  14513.  
  14514. You need to write a script within FileMaker that will copy the
  14515. pict file to the clipboard.
  14516.  
  14517. >From AppleScript write:
  14518. tell application "FileMaker Pro"
  14519.         activate
  14520.         Do Script FileMaker Script "Copy Picture"
  14521. end tell
  14522.          __@     Phillip 'Flip' Russell  | Purdue University      __@
  14523.   _ -_,_-\<,_ flip@bogie2.bio.purdue.edu | West Lafayette, IN _ -\<,_
  14524.  (_)-----/-(_)           The important things...             (_)-/-(_)
  14525.                         My bikes and my Macintosh
  14526. Biology Web Server:  http://www.bio.purdue.edu
  14527. =========================================================================
  14528. Date:         Tue, 15 Nov 1994 12:00:17 -0700
  14529. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14530. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14531. From:         Tim Neese <neese@SPOT.COLORADO.EDU>
  14532. Subject:      Listserv scripts on the Mac
  14533.  
  14534. Hello,
  14535.  
  14536. Someone recently asked on the info-mac list about being able to provide
  14537. listserv email list management and processing on the Mac.  While I haven't
  14538. seen anything to do this (at least in shareware), it occurred to me that
  14539. with the latest 1.0b8 version of MailShare, a freeware POP email server for
  14540. the mac, that this might be possible through some scripting, so I thought I
  14541. would run this by you and see if anyone has worked on this.
  14542.  
  14543. MailShare 1.0b8 has added an option to be able to save messages coming into
  14544. an address as files, which in combination with Folder Watcher (watches a
  14545. folder and runs an Applescript when it changes), AppleScript, System 7.5
  14546. (for the scriptable Finder, otherwise pre-7.5 Finder osaxen like Finder
  14547. Liaison with Sys 7.1), and Eudora (or TCP/IP Applescript kit to send
  14548. messages and files out), should make it possible to provide automated list
  14549. serving and processing on the Mac.
  14550.  
  14551. I would envision this working so that you had an account like 'listserv'
  14552. and mail sent to it would be automatically dumped into a folder.  Whenever
  14553. mail came into that folder, Folder Watcher would then run a listserv
  14554. Applescript that read in the file and either added a person to a list,
  14555. deleted them from a list, or mailed back the info file for a particular
  14556. list.  You could even create an Applescript to create email digests for
  14557. lists by concatenating email messages sent to a list (by having an address
  14558. on the MailShare server subscribed to the list and saving the messages to
  14559. files) into a file and then mailing that file out to the digest list at the
  14560. end of each day.  Adding names to a list file wouldn't seem to be that hard
  14561. since you're just concatenating them onto an existing file.  Deleting them
  14562. would be trickier because you need to be able to delete them from in the
  14563. middle of the file, but I think there would be ways to do this reasonably
  14564. efficiently.
  14565.  
  14566. Although it wouldn't be trivial to create these scripts, once created, they
  14567. shouldn't be too hard to setup.  In the long run, though, it would be
  14568. better to see this as part of MailShare itself (which the author has talked
  14569. about doing), so there wouldn't be so much dependence on external
  14570. applications and scripts, which are bound to jam up on occasion.  When it's
  14571. all said and done, however, the question of performance will still remain.
  14572. My intuitive sense is that it would be adequate for lists in the less than
  14573. 200 subscriber range but would bog down beyond that, but this is just pure
  14574. speculation on my part.
  14575.  
  14576. I would like to play around with this but am pretty new to Applescript and
  14577. don't have much time to devote to it, so if any Applescript wizards would
  14578. happen to want to sharpen their skills on this, I'm sure there would be
  14579. many grateful folks on the net who would greatly appreciate the convenience
  14580. of automated listserv managed lists for small groups with the Macintosh
  14581. ease of setup and maintenance.
  14582.  
  14583. Does anyone have any feedback or suggestions on how this could be done
  14584. better on a Mac or things that I've overlooked that I should consider
  14585. before spending time on playing around with scripts to do this?
  14586.  
  14587. Thanks.
  14588. Tim
  14589. =========================================================================
  14590. Date:         Tue, 15 Nov 1994 15:19:51 -0500
  14591. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14592. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14593. From:         David Jokinen <ground@INTERLINK.NET>
  14594. Subject:      Re(2): Get a life, Jon.
  14595.  
  14596. Jon wrote:
  14597. >Just so that this meets the charter, I'm now working out how to run
  14598. >AppleScripts from my Newton.  The real trick will be to get a beaming
  14599. >station for my Mac.
  14600.  
  14601. For an encore, I'd like to see you run NewtonScripts from your Mac. Kind of
  14602. like picking up your VCR and using the corner of it to press buttons on your
  14603. TV remote. :)
  14604.  
  14605. David Jokinen
  14606. Ground Zero Software
  14607. =========================================================================
  14608. Date:         Tue, 15 Nov 1994 16:05:49 -0500
  14609. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14610. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14611. From:         Jonathan Donald <jeddak@PANIX.COM>
  14612. Subject:      FMP TImeout Problem!
  14613.  
  14614. IUm working on a fairly large & involved AppleScript that manipulates
  14615. data in several FileMaker Pro files. It all seems to work really well, except
  14616. for one niggling--and highly frustrating--problem:
  14617.  
  14618. When I try to obtain the number of records in the current found set,
  14619. the event never resolves; instead, after a minute or so, I get an RAppleEvent
  14620. timed outS dialog box.
  14621.  
  14622. The problem line is:
  14623.  
  14624.         set rCount to (Count of Layout 1 of Window 1 Class Record)--times
  14625. out
  14626.  
  14627. IUve tried it with long time outs and it just doesnUt do any good.
  14628.  
  14629. My environment:
  14630. Quadra 700, System 7.1.1
  14631. Script Editor 1.1
  14632. FileMaker Pro 2.1v3
  14633. AppleScript 1.1
  14634. Inline Filter 1.1
  14635.  
  14636.  
  14637. Please help!!!
  14638.  
  14639.  
  14640. FYI: I had the same problem when I ran a FileMaker Script from my
  14641. AppleScript that did a Find All. When I replaced that call with a simple
  14642. AppleScript Tshow every record,U it no longer timed out.
  14643. =========================================================================
  14644. Date:         Wed, 16 Nov 1994 10:29:43 +1200
  14645. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14646. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14647. From:         Chris Latta <CHRIS@TEKOTAGO.AC.NZ>
  14648. Subject:      wp 3.x exporting
  14649.  
  14650. Has any one scripted wordperfect 3.0 or 3.1 to save a file as rtf or wp5.1
  14651.  export.  I can do it by telling wordperfect to run a macro that I have created
  14652.  but It would be great to do it all by applescript.
  14653.  
  14654. Thanks in advance
  14655.  
  14656. Chris Latta
  14657. Ed Tech Unit
  14658. Otago Polytechnic
  14659. New Zealand
  14660. "The only stupid questions are the ones I ask!"
  14661. =========================================================================
  14662. Date:         Tue, 15 Nov 1994 17:12:00 -0700
  14663. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14664. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14665. From:         Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM>
  14666. Subject:      Re: Sending raw events to Fa
  14667.  
  14668.         Reply to:   RE>Sending raw events to FaceSpan
  14669.  
  14670. Hi,
  14671.  
  14672. Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
  14673. > Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  14674. > the kind sent from Filemaker ie. an event class and an event id)?
  14675.  
  14676. > I can send event from Filemaker to an applet created with the script editor
  14677. > but not to an applet created with FaceSpan.
  14678.  
  14679. I tried this out, and ran into the same difficulty you had. Events that I
  14680. composed with the double-pointy-thing notation (eg: <<event clasidid>>)
  14681. didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
  14682. them on to the script component to let it try to handle them.
  14683.  
  14684. This struck me as odd, because other events (calls to osaxen and other
  14685. system-
  14686. handled events) had to make it. So I tried a 'custom' event with an event
  14687. class of 'aevt'. Ta da! It worked.
  14688.  
  14689. That's the secret: use an event class of 'aevt'. You could also try class
  14690. 'syso', but I noticed some wierd behaviour when I tried this out, so I would
  14691. not advise it.
  14692.  
  14693. Hope that helps (and thanks for asking cool questions),
  14694.   Andrew
  14695. ----------------------------------------------------------------------
  14696. Andrew T. Johnston  |
  14697. Apple Canada, Inc.  |  Who else would claim these opinions as his own?
  14698. atjohnst@apple.com  |
  14699. =========================================================================
  14700. Date:         Tue, 15 Nov 1994 17:19:08 +0000
  14701. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14702. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14703. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  14704. Subject:      Re: Unable to open dictionnary
  14705.  
  14706. >I am new to AppleScript and I have a problem. When I choose the "Open
  14707. >Dictionnary ..." in the File menu of Script Editor, I get an error message
  14708. >that said "Could not read the dictionnary of the application of extension
  14709. >because the required resources were not found."
  14710. >
  14711. >What do I need to be able to open dictionnaries.
  14712. >
  14713. >BTW, I got AppleScript 1.0 from Goodman's book, and I found a copy of
  14714. >version 1.1. What are the differences? Could it explain my problem (I think
  14715. >it workd well with version 1.0)?
  14716. >
  14717. >Thank you
  14718. >
  14719. >----------------------------------------------------------
  14720. >Martin Jean                                 ------------
  14721. You need v1.1 of the Script Editor *and* AppleScript.
  14722.  
  14723. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  14724.          www server: http://josaiah.sewanee.edu/
  14725.         Elomense(MUD): josaiah.sewanee.edu 1999 )
  14726. =========================================================================
  14727. Date:         Tue, 15 Nov 1994 15:55:28 PST
  14728. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14729. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14730. From:         Lawrence Wood <lawrencw@MICROSOFT.COM>
  14731. Subject:      Re: FMP Repeating Fields and Excel WorkSheets
  14732.  
  14733. Hi,
  14734.       Try the following (a quote from MS tech support that I have
  14735. twiddled with a bit)
  14736. BEGIN twiddled QUOTE
  14737. I begin with Excel 4.0, which does not support moving the contents of
  14738. the list with one statement, unlike Excel 5.0.
  14739.  
  14740. tell application "Microsoft Excel"
  14741.         activate
  14742.  
  14743.         set talley to {5, 6, 7, 8}
  14744.         set myrow to 2
  14745.  
  14746.         set selection to Cell 1 of Row myrow
  14747.  
  14748.         make new Row -- activecell at this point is first column of new row
  14749.  
  14750.         repeat with i in talley
  14751.                 set value of Cell "rc" to i
  14752.                 set selection to Cell "rc[1]"
  14753.         end repeat
  14754.  
  14755. end tell
  14756.  
  14757. And here is the Excel 5.0 version, which allows you to move the whole
  14758. list in one statement.  Pay attention to the trick at the bottom that
  14759. transposes a vertical array into a horizontal one.
  14760.  
  14761. tell application "Microsoft Excel"
  14762.  
  14763.         set talley to {5, 6, 7, 8}
  14764.         set myrow to 2
  14765.  
  14766.         Insert Row myrow -- Excel 5.0 syntax to insert a row at row 2
  14767.         set numCols to count of talley
  14768.         set Value of Cell ("r" & myrow & "c1:r" & myrow & "c" & numCols) to
  14769. {talley} -- won't work in 4.0
  14770.         (*
  14771.         note: {talley} is a trick to take the list talley, which would enter exc
  14772. el
  14773.                         as a vertical array, and place it within a list, the eff
  14774. ect of which
  14775.                         is to flip it into a horizontal array
  14776.         *)
  14777. end tell
  14778.  
  14779.  
  14780. Hope this helps,
  14781. END QUOTE
  14782. lw
  14783. ----------
  14784. From: Charles Bruce Pelto  <CPelto@AOL.COM>
  14785. To: Multiple recipients of list MACSCRPT  <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14786. Subject: FMP Repeating Fields and Excel WorkSheets
  14787. Date:  Nov 12, 94 9:41AM
  14788.  
  14789. Speaking of repeating fields...
  14790.  
  14791. ....I'm trying to figure out how to take the data from a repeating field and
  14792. stuff it into an Excel worksheet as a row.
  14793.  
  14794. I am using
  14795.  
  14796. tell application "FileMaker Pro"
  14797.      copy cellValue of cell "Repeating Field" to theRepeatingField
  14798. end tell
  14799.  
  14800. -- this gets the information from the repeating field as a list
  14801.  
  14802.  
  14803. tell application "Microsoft Excel"
  14804.      make new row at row r with data theRepeatingField
  14805. end tell
  14806.  
  14807. -- this gets me an error that reads Excel cannot continue -10000
  14808.  
  14809. I've called MS tech support and they've not been able to tell me what I
  14810. should be doing.
  14811. =========================================================================
  14812. Date:         Tue, 15 Nov 1994 16:52:36 -0800
  14813. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14814. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14815. From:         Doug Baron <userland@NETCOM.COM>
  14816. Subject:      Re: Listserv scripts on the Mac
  14817.  
  14818. >Someone recently asked on the info-mac list about being able to provide
  14819. >listserv email list management and processing on the Mac.  While I haven't
  14820. >seen anything to do this (at least in shareware), it occurred to me that
  14821. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  14822. >the mac, that this might be possible through some scripting, so I thought I
  14823. >would run this by you and see if anyone has worked on this.
  14824. >
  14825. >       .....
  14826. >
  14827. >Does anyone have any feedback or suggestions on how this could be done
  14828. >better on a Mac or things that I've overlooked that I should consider
  14829. >before spending time on playing around with scripts to do this?
  14830. >
  14831.  
  14832. My only suggestion would be that you might use Frontier. I know that Dave
  14833. Winer has implemented pretty much what you descibe with just Frontier and
  14834. Eudara alone. No need for the scriptable finder, osax, or anything else to
  14835. get the job done.
  14836.  
  14837. Doug
  14838. =========================================================================
  14839. Date:         Wed, 16 Nov 1994 12:35:55 +1100
  14840. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14841. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14842. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  14843. Subject:      Re: My first question...
  14844. In-Reply-To:  <199411130619.RAA07865@ariel.ucs.unimelb.EDU.AU> from "rD>" at
  14845.               Nov 13, 94 01:19:04 am
  14846.  
  14847. > The global and the _on idle_ commands I got from someone's advice.
  14848. > I have the TAO... and it does not cover these functions, yet in a FAQ I
  14849. > read that this book includes the full language.  Apparently not.
  14850. > I also read that AS has some stuff that is hard to find out about!
  14851. >
  14852. > This script works, but I don't know where to make the repeat loop.
  14853. > I have a feeling that the whole thing could be rewritten and made better,
  14854. > but this is my first (ambitious) script.
  14855.  
  14856. It would take a fair while to explain how all this works. It would be
  14857. better if you got hold of the "AppleScript Language Reference" (Addison
  14858. Wesley) and read about the idle handler there.
  14859.  
  14860. If you're serious about AppleScripting, you need this book. It also comes
  14861. with the AppleScript CD (along with FaceSpan, distribution license, and
  14862. other stuff...)
  14863.  
  14864. You don't need a repeat loop--a stay-open script will run an idle handler
  14865. every period returned by its 'Return' parameter.
  14866.  
  14867. You don't need a run handler. Commands outside a handler are assumed to be
  14868. for the run event.
  14869.  
  14870. Hope this helps,
  14871.  
  14872.  
  14873. /==============================\
  14874. | Jeremy P. Howard              |       "Logic must take care of itself."
  14875. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  14876. \==============================/         Tractatus Logico-Philisophicus
  14877. =========================================================================
  14878. Date:         Tue, 15 Nov 1994 20:43:46 -0500
  14879. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14880. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14881. From:         Jay Thomas <jthomas@PLUTO.NJCC.COM>
  14882. Subject:      Re: Listserv scripts on the Mac
  14883.  
  14884. >>Someone recently asked on the info-mac list about being able to provide
  14885. >>listserv email list management and processing on the Mac.  While I haven't
  14886. >>seen anything to do this (at least in shareware), it occurred to me that
  14887. >>with the latest 1.0b8 version of MailShare, a freeware POP email server for
  14888. >>the mac, that this might be possible through some scripting, so I thought I
  14889. >>would run this by you and see if anyone has worked on this.
  14890. >>
  14891. >>       .....
  14892. >>
  14893. >>Does anyone have any feedback or suggestions on how this could be done
  14894. >>better on a Mac or things that I've overlooked that I should consider
  14895. >>before spending time on playing around with scripts to do this?
  14896. >>
  14897. >
  14898. >My only suggestion would be that you might use Frontier. I know that Dave
  14899. >Winer has implemented pretty much what you descibe with just Frontier and
  14900. >Eudara alone. No need for the scriptable finder, osax, or anything else to
  14901. >get the job done.
  14902. >
  14903. >Doug
  14904.  
  14905. where can i get this? does it work with the frontier runtime.
  14906. =========================================================================
  14907. Date:         Tue, 15 Nov 1994 17:41:55 -0800
  14908. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14909. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14910. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  14911. Subject:      Re: Frontier: dialog.runModeless question
  14912.  
  14913. >Hi,
  14914. >
  14915. >So I wanted my Frontier customStartup script, which usually asks if I want
  14916. >Eudora started, to automatically answer in the affirmative if I haven't
  14917. >responded in thirty seconds. No problem, eh? Just take the code used in
  14918. >dialog.twoWay and duplicate it using dialog.runModeless instead of
  14919. >dialog.run. The problem is that dialog.run is kind enough to center the
  14920. >dialog in the screen when it draws it, but dialog.runModeless puts it up at
  14921. >0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
  14922. >depending on whether it's docked or undocked. Thanks.
  14923.  
  14924. Hi, David...
  14925.    In probing here, it appears that you can adjust the rectangle in the
  14926. DLOG resource, and have an effect on where the dialog will be displayed.
  14927. If I put the dialog "fairly far to the right and down", dialog.runModeless
  14928. places it a little up and left from where dialog.run does.  If I build the
  14929. DLOG resource so that its top left is 0,0, that's where dialog.runModeless
  14930. places it.
  14931.  
  14932.   --John
  14933.  
  14934. --
  14935. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  14936. =========================================================================
  14937. Date:         Wed, 16 Nov 1994 00:11:22 -0800
  14938. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14939. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14940. From:         Jon Pugh <jonpugh@NETCOM.COM>
  14941. Subject:      Re: "Get Terminology" event question
  14942.  
  14943. Brian Hall <mspace@NETCOM.COM> wrote:
  14944. >
  14945. >It used to be that an app had to support the "Get Terminology" event if
  14946. >people were to be able to write:
  14947. >tell application "foo" of machine "bar"
  14948. >  whatever
  14949. >end tell
  14950. >
  14951. >So that SE could syntax check.
  14952.  
  14953. I don't recall this ever being the case.  Most likely you didn't have
  14954. AppleScript installed on the remote machine.  I'm pretty sure that you need
  14955. to have AppleScript there so that it has the system GetTerminology handler
  14956. installed.  I suppose implementing one would work, but it's not the
  14957. simplest solution.  ;)
  14958.  
  14959. >System 7.5 to the rescue:
  14960. >It seems that the version of AppleScript that ships with 7.5 must install a
  14961. >system wide handler for this event, so even if the target app *does not*
  14962. >support the GT event, the extension will suck the resource out the app and
  14963. >pass it back for you. This is mostly a good thing.  The only apps that
  14964. >should mind are those that have dynamic 'aete' - and are there any yet?
  14965.  
  14966. AppleScript has always implemented this scheme.  System 7.5 had no changes
  14967. to AppleScript (well, OK, they recompiled it with a VERY minor Script
  14968. Editor WorldScript bug fix).
  14969.  
  14970. Also, as we were discussing a few days ago, Quark is the only app I know
  14971. which supports dynamic terminologies, but I have yet to see an extension
  14972. which has a dictionary.
  14973.  
  14974. >A side effect of this may be that if the app *is running* on that remote
  14975. >machine, perhaps it would load the resource in that heap? (A guess)
  14976.  
  14977. I believe that you MUST have the remote app running in order to script it.
  14978. Someone needs to be the target of the GetTerminology event.  As I stated
  14979. before, the resource gets loaded, detatched and returned (copied) in the
  14980. GetTerminology reply.  The original should be purgeable, but I don't think
  14981. it gets marked so by AppleScript (this is a good thing for the
  14982. investigative among you to check).
  14983.  
  14984. Jon
  14985. =========================================================================
  14986. Date:         Wed, 16 Nov 1994 00:11:25 -0800
  14987. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14988. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  14989. From:         Jon Pugh <jonpugh@NETCOM.COM>
  14990. Subject:      Re: Sending raw events to FaceSpan
  14991.  
  14992. Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM> said:
  14993. >
  14994. >Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
  14995. >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  14996. >> the kind sent from Filemaker ie. an event class and an event id)?
  14997. >
  14998. >> I can send event from Filemaker to an applet created with the script editor
  14999. >> but not to an applet created with FaceSpan.
  15000. >
  15001. >I tried this out, and ran into the same difficulty you had. Events that I
  15002. >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
  15003. >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
  15004. >them on to the script component to let it try to handle them.
  15005. >
  15006. >This struck me as odd, because other events (calls to osaxen and other
  15007. >system-
  15008. >handled events) had to make it. So I tried a 'custom' event with an event
  15009. >class of 'aevt'. Ta da! It worked.
  15010. >
  15011. >That's the secret: use an event class of 'aevt'. You could also try class
  15012. >'syso', but I noticed some wierd behaviour when I tried this out, so I would
  15013. >not advise it.
  15014.  
  15015. I can explain all of this.  FaceSpan registers its events in suites.  So,
  15016. it registers handlers for 'aevt****', 'core****' and 'misc****', among
  15017. others.  Thus, the custom event you were trying to accept wouldn't have a
  15018. handler installed for it.  If you made it fall into one of these suites, it
  15019. would have a handler installed, although there's no guarentee that an app
  15020. will do anything sensible with the event once the handler got it.
  15021.  
  15022. I would have expected that applets would do the same thing that Hypercard
  15023. does, which is to install a '********' handler and just deal with whatever
  15024. comes in.  They don't though.  They register a quit event and install a
  15025. phac handler (that's the AEInstallSpecialHandler with keyPreDispatch which
  15026. equals 'phac' and is not named after Phac Le Tuan).  This phac handler gets
  15027. every event BEFORE it gets sent to its proper handler.  I don't know why
  15028. its done this way, but I'll see if I can find out.  It's probably just a
  15029. dispatch optimization.
  15030.  
  15031. As a final note, the reason why 'syso' events go weird is that the "choose
  15032. folder" osax registers as the 'syso****' handler.  This means that any
  15033. events with class 'syso' and are not handled by an explicit handler, get
  15034. sent there and you get the Choose Folder dialog.  I think this might
  15035. qualify as a bug.  Someone should try finding the "choose folder" event in
  15036. the aete and change the osax name to match that and see if it still works.
  15037. I wonder if there are any other 'syso' events that it handles.  Time to
  15038. snoop the code, I guess.  ;)
  15039.  
  15040. Jon
  15041. =========================================================================
  15042. Date:         Wed, 16 Nov 1994 00:15:34 -0800
  15043. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15044. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15045. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  15046. Subject:      Re: Listserv scripts on the Mac
  15047.  
  15048. >Hello,
  15049. >
  15050. >Someone recently asked on the info-mac list about being able to provide
  15051. >listserv email list management and processing on the Mac.  While I haven't
  15052. >seen anything to do this (at least in shareware), it occurred to me that
  15053. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  15054. >the mac, that this might be possible through some scripting, so I thought I
  15055. >would run this by you and see if anyone has worked on this.
  15056.  
  15057. This is the sort of largish job I would tend to do with Frontier, rather
  15058. than with AppleScript.  [Eudora would be fine as the mailing application.]
  15059. Several of Frontier's capabilities make sense here (your list might be an
  15060. outline in the Frontier database, rather than a separate text file.  The
  15061. outline editor in Frontier is nicely scriptable.
  15062.  
  15063.    --John
  15064.  
  15065. --
  15066. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  15067. =========================================================================
  15068. Date:         Wed, 16 Nov 1994 00:37:09 -0800
  15069. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15070. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15071. From:         "Alex L. Bangs" <bangs@NETCOM.COM>
  15072. Subject:      Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
  15073.  
  15074. >From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  15075. >Subject: Accessing the OSA from C
  15076. >
  15077. >OK, I see the book on how to do the OSACompile and all that.
  15078. >
  15079. >How do I check if these traps are available? There doesn't seem to be a
  15080. >Gestalt selector for same, nor can I find a way of checking directly.
  15081.  
  15082. I wondered the same when I first tried to do this... when you try to
  15083. open the component, it will return NULL if there is no component. I don't
  15084. know if this works on System 6, but on System 7, it will return NULL if
  15085. AppleScript is not installed. I don't know if there is a Gestalt call
  15086. for the Component Manager...
  15087.  
  15088. ex.
  15089. gScriptingComponent = OpenDefaultComponent(kOSAComponentType,
  15090.                                              kAppleScriptSubtype);
  15091.  
  15092. To check if AppleScript loaded (later in program) ...
  15093.  
  15094. if (gScriptingComponent != NULL)
  15095. {
  15096. ... do OSAExecute, etc.
  15097. }
  15098.  
  15099. BTW, a good article/sample to use if you are trying to get started with OSA
  15100. calls is in Apple's "develop" magazine, issue 18 (June 1994): "Programming
  15101. for Flexibility: The Open Scripting Architecture" by Paul G. Smith.
  15102.  
  15103. Re: the comment "The Gestalt selector is gestaltAppleEventsAttr ('evnt')",
  15104. that will tell you if AppleEvents are present, but not if AppleScript is...
  15105.  
  15106.  
  15107. -- Alex
  15108. =========================================================================
  15109. Date:         Wed, 16 Nov 1994 04:34:15 -0500
  15110. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15111. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15112. From:         David Jokinen <ground@INTERLINK.NET>
  15113. Subject:      Re(2): Listserv scripts on the Mac
  15114.  
  15115. >Someone recently asked on the info-mac list about being able to provide
  15116. >listserv email list management and processing on the Mac.  While I haven't
  15117. >seen anything to do this (at least in shareware), it occurred to me that
  15118. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  15119. >the mac, that this might be possible through some scripting, so I thought I
  15120. >would run this by you and see if anyone has worked on this.
  15121.  
  15122. I, too, would like to offer a Macintosh-based list server. In fact, I would
  15123. very much like to get involved in creating it.
  15124.  
  15125. I wonder what would happen if we were to try this instead via PowerTalk
  15126. gateways, which will offer the potential for a multi-system listserv
  15127. (probably the world's first!) The concept of messages coming in and going out
  15128. via any combination of carriers is exciting, especially when you consider
  15129. that PowerTalk automatically delivers messages in the best possible format,
  15130. not the least common format.
  15131.  
  15132. To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
  15133. QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
  15134. Internet one, in particular, is a dream. I heartily recommend Mail*Link
  15135. PT/INET from StarNine. Its handling of enclosures is totally transparent,
  15136. plus you get to use all the fancy address catalogs.
  15137.  
  15138. So the plan would be: incoming->PowerShare->AOCE
  15139. daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
  15140. the daemon. PowerRules (now owned by Banyan) was a first attempt in the
  15141. daemon area, but I know something better is possible. Just look at the sheer
  15142. size of "Inside Macintosh: AOCE Application Interfaces." :)
  15143.  
  15144. David Jokinen
  15145. Ground Zero Software
  15146. ground@interlink.net
  15147. =========================================================================
  15148. Date:         Wed, 16 Nov 1994 10:44:50 +0100
  15149. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15150. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15151. From:         Chris Remie <chris@MEDIAMATIC.NL>
  15152. Subject:      Newbie on Timer function
  15153.  
  15154. Hi,
  15155. I'm new here so have mercy.
  15156. Is there a way to make a script that performs a task at a certain time every
  15157.  day?
  15158. Thanks,
  15159. Chris Remie
  15160.  
  15161. Mediamatic Magazine
  15162. Mediamatic Interactive Publishing
  15163.  
  15164. postbus 17490
  15165. 1001 JL  Amsterdam
  15166. the Netherlands
  15167.  
  15168. vox: +31 - 20 626 6262
  15169. fax: +31 - 20 626 3793
  15170. www: http://mmol.mediamatic.nl
  15171. =========================================================================
  15172. Date:         Wed, 16 Nov 1994 08:36:40 -0500
  15173. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15174. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15175. From:         Gary Morrison <MORRISG@ORG.BITNET>
  15176. Subject:      Re
  15177. In-Reply-To:  <199411160814.AA20474@iia.org>
  15178.  
  15179. unsubcribe
  15180. =========================================================================
  15181. Date:         Wed, 16 Nov 1994 08:43:23 -0500
  15182. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15183. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15184. From:         "Michael D. Doub" <doub@DG-RTP.DG.COM>
  15185. Subject:      Changing Folder and File Visibility
  15186.  
  15187. Is anyone aware of a osaxen that would allow you to control the visability
  15188. of a folder or a file from AppleScript?  A scriptable version of the
  15189. BlindFold application would do the trick too.  Does it exist?
  15190.  
  15191. Thanks
  15192.   Mike
  15193. =========================================================================
  15194. Date:         Wed, 16 Nov 1994 14:23:23 +0000
  15195. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15196. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15197. From:         David Davies <d.a.davies@BHAM.AC.UK>
  15198. Subject:      Key presses and timing query
  15199.  
  15200. Sorry to ask such a basic question but can anyone tell me how to get back
  15201. which key a user has pressed from within Applescript?
  15202.  
  15203. While I'm at it, does anyone know of a more accurate way of timing an
  15204. operation in Applescript other than using the time to the nearest second?
  15205. Tenths of a second would be good enough.
  15206.  
  15207. Thanks,
  15208.  
  15209. David Davies
  15210. =========================================================================
  15211. Date:         Wed, 16 Nov 1994 08:55:45 -0600
  15212. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15213. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15214. From:         Fred Terry <pfterry@LKS.CSI.COM>
  15215. Subject:      Re: Re
  15216. In-Reply-To:  Your message of "Wed, 16 Nov 94 08:36:40 EST"
  15217.  
  15218. >unsubcribe
  15219.  
  15220. Send your request to listserv@dartmouth.edu in the form
  15221.  
  15222. signoff macscrpt
  15223. =========================================================================
  15224. Date:         Wed, 16 Nov 1994 12:26:21 AST4ADT
  15225. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15226. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15227. From:         LEBLANR@UMONCTON.CA
  15228. Organization: Universite de Moncton
  15229. Subject:      unsub
  15230.  
  15231. unsubscribe Bob LeBlanc
  15232. =========================================================================
  15233. Date:         Wed, 16 Nov 1994 11:06:23 -0500
  15234. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15235. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15236. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  15237. Subject:      Re: Sending raw events to FaceSpan
  15238.  
  15239. Mark Asked:
  15240. >>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  15241. >>the kind sent from Filemaker ie. an event class and an event id)?
  15242. >>
  15243. >>I can send event from Filemaker to an applet created with the script editor
  15244. >>but not to an applet created with FaceSpan.
  15245. >>
  15246. >>Any help our suggestions would be most appreciated.
  15247. >>Thanks in advance.
  15248. >
  15249. John responded:
  15250. >well, you have the seeds to a work-around!
  15251. >
  15252. >Just make an applet in AppleScript to receive these events, and then send
  15253. >them to the FaceSpan app via "tell" statements... that should work.
  15254. >
  15255. >- john
  15256. >
  15257. >-----------------------------------------
  15258. >js12@gte.com             GTE Laboratories
  15259. >John Schettino                Waltham, MA
  15260.  
  15261. Lets call a club a club - its not a work-around it a kludge!!  Funny enough
  15262. I hadn't thought of doing that.  Not a bad suggestion but not an ideal
  15263. solution for me.  I'm designing applets that are distrubuted to multiple
  15264. users in my institution.  If I told them 'well here filemaker for the
  15265. database, and here's an facespan applet to do functions that filemaker
  15266. can't do, oh and ya, here's another application...'.
  15267. I REALLY would like to avoid a scenario like that...
  15268.  
  15269. Mark Hadfield
  15270. hadfield@sickkids.on.ca
  15271. The Hospital For Sick Children
  15272. =========================================================================
  15273. Date:         Wed, 16 Nov 1994 10:08:49 -0600
  15274. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15275. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15276. From:         Fred Terry <pfterry@LKS.CSI.COM>
  15277. Subject:      Re: unsub
  15278. In-Reply-To:  Your message of "Wed, 16 Nov 94 12:26:21 -0400"
  15279.  
  15280. >unsubscribe Bob LeBlanc
  15281.  
  15282. Please send your request to listserv@dartmouth.edu in the form
  15283.  
  15284. signoff macscrpt
  15285. =========================================================================
  15286. Date:         Wed, 16 Nov 1994 11:30:44 -0500
  15287. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15288. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15289. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  15290. Subject:      Re: FMP Timeout Problem!
  15291.  
  15292. >IUm working on a fairly large & involved AppleScript that manipulates
  15293. >data in several FileMaker Pro files. It all seems to work really well, exce=
  15294. pt
  15295. >for one niggling--and highly frustrating--problem:
  15296. >
  15297. >When I try to obtain the number of records in the current found set,
  15298. >the event never resolves; instead, after a minute or so, I get an RAppleEve=
  15299. nt
  15300. >timed outS dialog box.
  15301. >
  15302. >The problem line is:
  15303. >
  15304. >        set rCount to (Count of Layout 1 of Window 1 Class Record)--times
  15305. >out
  15306. >
  15307. >IUve tried it with long time outs and it just doesnUt do any good.
  15308. >
  15309. >
  15310. >Please help!!!
  15311. >
  15312. >
  15313. >FYI: I had the same problem when I ran a FileMaker Script from my
  15314. >AppleScript that did a Find All. When I replaced that call with a simple
  15315. >AppleScript Tshow every record,U it no longer timed out.
  15316.  
  15317. The problem is not your 'set count to' command its the command that comes
  15318. before it. Let me guess- the line before it is triggering a Filemaker
  15319. script.  This is the crux of the problem:  when you trigger a filemaker
  15320. script, FM tells applescript that it is complete WHEN THE FM SCRIPT IS
  15321. TRIGGERED NOT WHEN THE FM SCRIPT IS COMPLETE.  Applescript assumes that FM
  15322. is done and issues the next event (your count records command).  FM  misses
  15323. the command and thus never responds back to it.  Applescript waits
  15324. patiently to hear back and eventually times out.  There are a couple of
  15325. ways around it, one a simple kludge, the other more industrial strength.
  15326.  
  15327. Simple fix:  After every 'do script filemaker script' do a repeat loop long
  15328. enough to ensure the FM script will be finished executing.
  15329.  
  15330. The simple fix is just that simple - but can cause problems if the script
  15331. is running on slower machines or if the type of FM script that is called
  15332. can have varying length of runs (ie. most take 3 seconds but one big one
  15333. takes 50 seconds - you would have to set the repeat loop to last 50 seconds
  15334. even though most are only 3 seconds...).
  15335.  
  15336. Industrial Strength fix:  In every filemaker script that is called from
  15337. applescript add a 'send apple event...' command and the end of the script.
  15338. Set the event class to FMPX. Set the event ID to DONE. Then add the
  15339. following code to your applescript:
  15340.  
  15341. property okContinue : false
  15342.  
  15343. on =ABevent FMPXDONE=BB
  15344.         set okContinue to true
  15345. end =ABevent FMPXDONE=BB
  15346.  
  15347.  
  15348. on foo()
  15349. tell application "Filemaker Pro"
  15350. Do Script FileMaker Script "whatever script you want"
  15351.   if (my canIcontinue()) is false then display dialog "Did not hear from FM
  15352. or FM script took too long to run"
  15353. count class record
  15354. .
  15355. .
  15356. .
  15357. end tell
  15358. end foo
  15359.  
  15360.  
  15361. on canIcontinue()
  15362.         global okContinue
  15363.         local startTime
  15364.         set startTime to current date
  15365.         repeat until ((current date) - (startTime)) > 200
  15366. -- how many seconds to you want to wait to hear back from Filemaker?
  15367.                 if okContinue is true then
  15368.                         set okContinue to false
  15369.                         set startTime to current date -- a small delay to
  15370. ensure FM is ready
  15371.                         repeat until ((current date) - (startTime)) > 1
  15372.                         end repeat
  15373.                         return true
  15374.                 end if
  15375.         end repeat
  15376.         set okContinue to false
  15377.         return false
  15378. end canIcontinue
  15379.  
  15380. Its much more complex but is dynamic: if the FM script only takes 4 seconds
  15381. to run applescript will be issuing the next command 5 or 6 seconds after
  15382. the FM script was called.  If the FM script takes 130 seconds to run
  15383. applescript will be issuing the next command 131 or 132 seconds later.
  15384.  
  15385.  
  15386.  
  15387. Mark Hadfield
  15388. hadfield@sickkids.on.ca
  15389. The Hospital For Sick Children
  15390. =========================================================================
  15391. Date:         Wed, 16 Nov 1994 11:41:12 -0500
  15392. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15393. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15394. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  15395. Subject:      Re: Sending raw events to Fa
  15396.  
  15397. >>I wrote:
  15398. >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  15399. >> the kind sent from Filemaker ie. an event class and an event id)?
  15400. >
  15401. >> I can send event from Filemaker to an applet created with the script editor
  15402. >> but not to an applet created with FaceSpan.
  15403. >
  15404. >I tried this out, and ran into the same difficulty you had. Events that I
  15405. >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
  15406. >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
  15407. >them on to the script component to let it try to handle them.
  15408. >
  15409. >This struck me as odd, because other events (calls to osaxen and other
  15410. >system-
  15411. >handled events) had to make it. So I tried a 'custom' event with an event
  15412. >class of 'aevt'. Ta da! It worked.
  15413. >
  15414. >That's the secret: use an event class of 'aevt'. You could also try class
  15415. >'syso', but I noticed some wierd behaviour when I tried this out, so I would
  15416. >not advise it.
  15417. >
  15418. >Hope that helps (and thanks for asking cool questions),
  15419. >  Andrew
  15420. >----------------------------------------------------------------------
  15421. >Andrew T. Johnston  |
  15422. >Apple Canada, Inc.  |  Who else would claim these opinions as his own?
  15423. >atjohnst@apple.com  |
  15424.  
  15425.  
  15426.  
  15427. Whoopee!! It worked!!  You are a god!  No more faceless applets for my users!!!
  15428.  
  15429. Mark Hadfield
  15430. hadfield@sickkids.on.ca
  15431. The Hospital For Sick Children
  15432. =========================================================================
  15433. Date:         Wed, 16 Nov 1994 12:03:23 -0500
  15434. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15435. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15436. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  15437. Subject:      Re: Changing Folder and File Visibility
  15438.  
  15439. I have C code that does this; if one doesn't exist I could probably write an
  15440. osax if I knew how. :D
  15441.  
  15442. _Deirdre
  15443.  
  15444. Michael Doub asks:
  15445. > Is anyone aware of a osaxen that would allow you to
  15446. >  control the visability of a folder or a file from
  15447. >  AppleScript?  A scriptable version of the BlindFold
  15448. >  application would do the trick too.  Does it exist?
  15449. =========================================================================
  15450. Date:         Wed, 16 Nov 1994 09:38:23 -0800
  15451. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15452. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15453. From:         Kevin Purcell <kevinpu@ATM.COM>
  15454. Subject:      Script Editor WorldScript bug fix?
  15455.  
  15456. >AppleScript has always implemented this scheme.  System 7.5 had no changes
  15457. >to AppleScript (well, OK, they recompiled it with a VERY minor Script
  15458. >Editor WorldScript bug fix).
  15459.  
  15460. Too minor for Power Macs -- do the earlier versions of the script editor
  15461. have the "off by n" clicking problem under script editor 1.1 or 1.0?
  15462.  
  15463. Kevin Purcell      Attachmate Corp        (206) 649-6489
  15464. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  15465. =========================================================================
  15466. Date:         Wed, 16 Nov 1994 10:11:34 U
  15467. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15468. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15469. From:         Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  15470. Subject:      RE- FMP & Picture fields
  15471.  
  15472.         Reply to:   RE: FMP & Picture fields
  15473. tell application "FileMaker Pro"
  15474.      copy cellValue of cell "Picture" to thePicture
  15475. end tell
  15476.  
  15477. works fine i.e. the picture data is tored in the variable thePicture.  You
  15478. can verify this by setting this data back into the picture field in a new
  15479. record within your database.   What exactly do you want to do with the data
  15480. in thePicture after you have copied it.
  15481. =========================================================================
  15482. Date:         Wed, 16 Nov 1994 10:24:16 -0800
  15483. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15484. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15485. From:         "Alex L. Bangs" <bangs@NETCOM.COM>
  15486. Subject:      HyperCard + Excel Questions
  15487.  
  15488. A few questions:
  15489.  
  15490. (1) I've been experimenting with doing AppleScript in HyperCard. The
  15491. on-line documentation is amazingly vague about transfering data back and
  15492. forth, and provides no examples. By looking at the mail merge example
  15493. stack, I saw that they are getting HyperCard data via using HyperTalk
  15494. functions called from AppleScript. I also know I can access fields
  15495. directly.
  15496.  * Question: is there a way to get direct access to global HyperTalk variables?
  15497.     I can access them when running a script from the script editor and using
  15498.     an evaluate expression, but when I try to do this inside HyperCard as
  15499.     an AppleScript script, it doesn't work.
  15500.  
  15501.  * Question: is it possible to using HyperTalk "chunking" expressions from
  15502.     AppleScript? I think the answer is know but would appreciate enlightenment.
  15503.     I'm talking about things like 'the first item of line 1 of bkgnd field "x"'
  15504.  
  15505. (2) What my script does is take a field or variable and turn it into a 2D
  15506.     list which can then be dumped into Excel via a named range of cells.
  15507.     Here's the one line I tell Excel:
  15508.      set value of Range myRange to myArray
  15509.     The problem is it executes *really* slowly, like 1 cell per second on
  15510.     a PB 170. Any idea what's going on here.
  15511.  
  15512. (3) If you'd like to take pot-shots at my script, here it is:
  15513.  
  15514. -- this script accesses all HyperCard data via a set of
  15515. -- background HyperTalk functions -- getData*()
  15516.  
  15517. on mouseUp
  15518.         set saveDelim to AppleScript's text item delimiters
  15519.         set AppleScript's text item delimiters to {","}
  15520.         set nRows to getDataNRows()
  15521.         set nCols to getDataNCols()
  15522.         set myArray to {}
  15523.         repeat with r from 1 to nRows
  15524.                 set rowItems to text items of getDataNthRow(r)
  15525.                 set rowList to {}
  15526.                 repeat with c from 1 to nCols
  15527.                         set rowList to rowList & {item c of rowItems as number}
  15528.                 end repeat
  15529.                 set myArray to myArray & {rowList}
  15530.         end repeat
  15531.         set AppleScript's text item delimiters to saveDelim
  15532.         set myRange to getDataRange()
  15533.  
  15534.         tell application "Excel"
  15535.                 activate
  15536.                 -- the following line runs painfully slowly!
  15537.                 set value of Range myRange to myArray
  15538.         end tell
  15539. end mouseUp
  15540.  
  15541. Thanks!
  15542. Alex
  15543. =========================================================================
  15544. Date:         Wed, 16 Nov 1994 13:35:10 -0500
  15545. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15546. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15547. From:         Aaron Brockett <abrocke1@CC.SWARTHMORE.EDU>
  15548. Subject:      backgrounding an applescript application
  15549.  
  15550. I want to know how to make an applescript saved as a stay open application
  15551. stay in the background (as in, not appearing in the application menu) at
  15552. all times.
  15553.  
  15554. Here's what I'm trying to do: I have a little script that, if it's two
  15555. minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  15556. database, and then quits it. I'm doing this so that the Today function gets
  15557. recalculated every day and at a time when no one is using it so they don't
  15558. have to sit through the calculation.
  15559. Clearly, this script needs to be open at all times, and I can't trust the
  15560. users of the system not to quit it if they see it in the application menu.
  15561. Hence my question.
  15562.  
  15563. I tried a horrendous hack which, not surprisingly, didn't work: I opened
  15564. the size resource with ResEdit and checked the "Always Background" bit.
  15565. When launched, the script did in fact go into the background, but it also
  15566. crashed my computer when I checked the application menu.
  15567.  
  15568. If anyone had other ideas about how to do this, that would be appreciated
  15569. too. I tried to use Cron to do this, but couldn't for the life of me get it
  15570. to open a file. I could beep with it, flash dialogs, open a _program_,
  15571. etcetera, but I absolutely couldn't get it to open a file.
  15572.  
  15573. Any help would be appreciated. Thanks.
  15574.  
  15575. Aaron Brockett
  15576. abrocke1@cc.swarthmore.edu
  15577. =========================================================================
  15578. Date:         Wed, 16 Nov 1994 10:53:43 -0800
  15579. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15580. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15581. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  15582. Subject:      Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
  15583.  
  15584. >>From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  15585. >>Subject: Accessing the OSA from C
  15586. >>
  15587. >>OK, I see the book on how to do the OSACompile and all that.
  15588. >>
  15589. >>How do I check if these traps are available? There doesn't seem to be a
  15590. >>Gestalt selector for same, nor can I find a way of checking directly.
  15591. >
  15592. >I wondered the same when I first tried to do this... when you try to
  15593. >open the component, it will return NULL if there is no component. I don't
  15594. >know if this works on System 6, but on System 7, it will return NULL if
  15595. >AppleScript is not installed. I don't know if there is a Gestalt call
  15596. >for the Component Manager...
  15597. >
  15598.  
  15599. The gestalt selector which lets you know whether the Component Manager is
  15600. present is gestaltComponentMgr ('cpnt'), which returns the version number
  15601. of the Component Manager (4 on my 8100 running System 7.5, your mileage may
  15602. vary).
  15603.  
  15604. If Component Manager is not available, the selector is not defined, and
  15605. Gestalt will return an error.
  15606.  
  15607. The Component Manager is available under System 6.x and System 7.0.x if and
  15608. only if QuickTime is installed*...it became part of the base System in
  15609. System 7.1
  15610.  
  15611.   --John
  15612.  
  15613. * Or a hypothetical something else which installs Component Manager in
  15614. those old Systems.  Sys 7.0 was so long ago--did AppleScript install
  15615. Component Manager, or refuse to run without it, or ...?
  15616.  
  15617. --
  15618. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  15619. =========================================================================
  15620. Date:         Wed, 16 Nov 1994 12:23:41 CST
  15621. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15622. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15623. From:         Joshua Buysse <BUYSSE@MAIN.MNDLY.UMN.EDU>
  15624. Organization: the Minnesota Daily
  15625. Subject:      Stack overflow error
  15626.  
  15627. A fairly large script that I've been working on is consistently
  15628. giving me "Stack Overflow" errors.
  15629.  
  15630. What can I do to get this to work inside AppleScript?  Note: the
  15631. error is occuring during a tell statement to the Finder.
  15632.  
  15633. Besides that, is there any way that my script can receive
  15634. notification when a volume is mounted without doing an idle loop to
  15635. watch for it?
  15636.  
  15637. I'm using System 7.5, with the AppleScript Scripter's kit installed.
  15638.  
  15639. Thanks,
  15640. Josh Buysse
  15641.  
  15642. CAFE Mac Client designer
  15643. University of Minnesota AIS
  15644. =========================================================================
  15645. Date:         Wed, 16 Nov 1994 14:32:28 -0500
  15646. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15647. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15648. From:         Jonathan Donald <jeddak@PANIX.COM>
  15649. Subject:      Re: FMP Timeout Problem!
  15650.  
  15651.  
  15652. Thanks for your enlightening explanation regarding FileMaker timing out on
  15653. script calls.
  15654.  
  15655. IUve begun implementing the industrial-strength fix you described, but IUve
  15656. run into one problem. The apple event handler you specified doesnUt compile:
  15657.  
  15658.                 on =ABevent FMPXDONE=BB
  15659.                         set okContinue to true
  15660.                 end =ABevent FMPXDONE=BB
  15661.  
  15662. I get a dialog box that says: RExpected function name, command name or
  15663. function
  15664. name but found R=S.
  15665.  
  15666. Also, an observation (please tell me if IUm wrong):
  15667.  
  15668. Your technique of having the FileMaker Pro script send an FMPX/DONE event
  15669. assumes that the called script does not call subscripts that are also called
  15670. by the AppleScript.
  15671.  
  15672. For example, letUs say I want to call FileMaker script x, and have x confirm
  15673. its
  15674. completion by sending the DONE event. Given this scenario, I canUt call
  15675. script
  15676. x
  15677. from within script y and then call script y from my AppleScript, because the
  15678. DONE event would be sent as soon as script x is completed, not after y is
  15679. completed.
  15680.  
  15681.  
  15682.  
  15683. -jd
  15684. =========================================================================
  15685. Date:         Wed, 16 Nov 1994 13:58:11 U
  15686. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15687. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15688. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  15689. Subject:      Re: Key presses and timing query
  15690.  
  15691. > Sorry to ask such a basic question but can
  15692. > anyone tell me how to get back which key a user
  15693. > has pressed from within Applescript?
  15694.  
  15695. Jon's Commands 1.2 has the following event:
  15696.  
  15697. keys pressed: Get the keys that are currently pressed.
  15698.         keys pressed
  15699.         Result:   string  -- A list of key names.
  15700.  
  15701. Hope this helps.
  15702.  
  15703. Dennis L. Whiteman
  15704. THE ULTIMATE FREELANCER
  15705. ultimate@mail.icon.net
  15706. =========================================================================
  15707. Date:         Wed, 16 Nov 1994 12:09:04 GMT
  15708. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15709. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15710. From:         Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
  15711. Organization: Sage Design
  15712. Subject:      NDN: Newbie on Timer function
  15713.  
  15714. Sorry. Your message could not be delivered:
  15715.  
  15716. Message contained no valid addresses.
  15717. =========================================================================
  15718. Date:         Thu, 17 Nov 1994 09:03:00 +1300
  15719. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15720. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15721. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  15722.               NZ" <LDO@WAIKATO.AC.NZ>
  15723. Subject:      Re: AOCE listservs (was Re: Listserv scripts on the Mac)
  15724.  
  15725. David Jokinen <ground@INTERLINK.NET> writes:
  15726.  
  15727. >I wonder what would happen if we were to try this instead via PowerTalk
  15728. >gateways, which will offer the potential for a multi-system listserv
  15729. >(probably the world's first!) The concept of messages coming in and going out
  15730. >via any combination of carriers is exciting, especially when you consider
  15731. >that PowerTalk automatically delivers messages in the best possible format,
  15732. >not the least common format.
  15733. >
  15734. >To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
  15735. >QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
  15736. >Internet one, in particular, is a dream. I heartily recommend Mail*Link
  15737. >PT/INET from StarNine. Its handling of enclosures is totally transparent,
  15738. >plus you get to use all the fancy address catalogs.
  15739. >
  15740. >So the plan would be: incoming->PowerShare->AOCE
  15741. >daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
  15742. >the daemon. PowerRules (now owned by Banyan) was a first attempt in the
  15743. >daemon area, but I know something better is possible. Just look at the sheer
  15744. >size of "Inside Macintosh: AOCE Application Interfaces." :)
  15745.  
  15746. Before you get too enthused, bear in mind that the current public AOCE APIs
  15747. aren't really up to the task. PowerRules was done using APIs which were not
  15748. made generally public, because they were not guaranteed to be stable enough
  15749. for public use.
  15750.  
  15751. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  15752. Computer Services Dept                     fax: +64-7-838-4066
  15753. University of Waikato            electric mail: ldo@waikato.ac.nz
  15754. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  15755. =========================================================================
  15756. Date:         Wed, 16 Nov 1994 12:27:45 -0800
  15757. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15758. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15759. From:         David Lewis <lewis@NETCOM.COM>
  15760. Subject:      Re: Frontier: dialog.runModeless question
  15761.  
  15762. >>The problem is that dialog.run is kind enough to center the
  15763. >>dialog in the screen when it draws it, but dialog.runModeless puts it up at
  15764. >>0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
  15765. >>depending on whether it's docked or undocked. Thanks.
  15766. >
  15767. >Hi, David...
  15768. >   In probing here, it appears that you can adjust the rectangle in the
  15769. >DLOG resource, and have an effect on where the dialog will be displayed.
  15770. >If I put the dialog "fairly far to the right and down", dialog.runModeless
  15771. >places it a little up and left from where dialog.run does.  If I build the
  15772. >DLOG resource so that its top left is 0,0, that's where dialog.runModeless
  15773. >places it.
  15774. >
  15775. Yeah, I can solve it in a couple of ways, all of them sub-optimal. I can
  15776. have one custom dialog file which places it off-center on one of the
  15777. screens. I can have two custom dialog files, and use the kludge of
  15778. switching between them depending on the existance of a disk I know to be
  15779. present only in the dock. (I've never figured out a gestalt selector for
  15780. the presence of a dock, but I haven't looked at the latest version of the
  15781. list.) Or I could execute this as part of the pre-display case in the
  15782. callback routine:
  15783.  
  15784.     KeyQuencer.doScript ("WaitWindow dialog open\rMoveWindow center")
  15785.  
  15786. which is visually dippy since the dialog is displayed in the wrong place
  15787. for a split second. I guess that any of them are good enough for my own
  15788. use, and I'm glad you flagged it for Doug. If there's a wish list for 4.0
  15789. still, it would be nice to have the same background timing mechanism for
  15790. dialog.run that exists for dialog.runModeless. Thanks.
  15791.  
  15792.     David
  15793.  
  15794. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  15795. =========================================================================
  15796. Date:         Wed, 16 Nov 1994 13:20:20 -0800
  15797. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15798. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15799. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  15800. Subject:      Re: Sending raw events to FaceSpan
  15801.  
  15802. >Mark Asked:
  15803. >>>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  15804. >>>the kind sent from Filemaker ie. an event class and an event id)?
  15805. >>>
  15806. >>>I can send event from Filemaker to an applet created with the script editor
  15807. >>>but not to an applet created with FaceSpan.
  15808. >>>
  15809. >>>Any help our suggestions would be most appreciated.
  15810. >>>Thanks in advance.
  15811. >>
  15812. >John responded:
  15813. >>well, you have the seeds to a work-around!
  15814. >>
  15815. >>Just make an applet in AppleScript to receive these events, and then send
  15816. >>them to the FaceSpan app via "tell" statements... that should work.
  15817. >>
  15818. >>- john
  15819. >>
  15820. >>-----------------------------------------
  15821. >>js12@gte.com             GTE Laboratories
  15822. >>John Schettino                Waltham, MA
  15823. >
  15824. >Lets call a club a club - its not a work-around it a kludge!!  Funny enough
  15825. >I hadn't thought of doing that.  Not a bad suggestion but not an ideal
  15826. >solution for me.  I'm designing applets that are distrubuted to multiple
  15827. >users in my institution.  If I told them 'well here filemaker for the
  15828. >database, and here's an facespan applet to do functions that filemaker
  15829. >can't do, oh and ya, here's another application...'.
  15830. >I REALLY would like to avoid a scenario like that...
  15831. >
  15832.  
  15833. It also won't help, unless the kludge applet also translates the event into
  15834. one which you can receive in a FaceSpan applet.  But...FileMaker could send
  15835. that directly, without the kludge.  Basically, a dead end.
  15836.  
  15837.    --John
  15838.  
  15839. --
  15840. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  15841. =========================================================================
  15842. Date:         Wed, 16 Nov 1994 13:23:30 U
  15843. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15844. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15845. From:         Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  15846. Subject:      RE-FMP Creating a new recor
  15847.  
  15848.                        Subject:                               Time:13:20
  15849.   OFFICE MEMO          RE:FMP Creating a new record with      Date:11/16/94
  15850. If you want to fill out all the fields in the new record then you can set the
  15851. data to layout 0 (layout 0 is a conceptual layout consisting of all the
  15852. fields defined in the database, the fields are ordered according to their
  15853. creation order).  On layouts other than layout 0 the data will also be set to
  15854. the fields according to their creation order however data will only be set
  15855. into the fields that actually exist on that layout.
  15856.  
  15857. Layout 0 has all fields in creation order.
  15858. Layout nth Layout has the fields that exist on that layout in creation order.
  15859.  
  15860. Stephen
  15861. =========================================================================
  15862. Date:         Wed, 16 Nov 1994 16:31:59 -0500
  15863. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15864. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15865. From:         David Jokinen <ground@INTERLINK.NET>
  15866. Subject:      Re(2): FMP Timeout Problem!
  15867.  
  15868. Much thanks to Mark Hadfield for finally clearing up this common FileMaker
  15869. script problem. Now, could someone please clarify the meaning of the
  15870. following construct he used?
  15871.  
  15872. > on =ABevent FMPXDONE=BB
  15873. >         set okContinue to true
  15874. > end =ABevent FMPXDONE=BB
  15875.  
  15876. I presume it's some kind of AppleEvent handler, but I don't recognize the
  15877. syntax, nor could I find anything like it in the AppleScript Language Guide.
  15878.  
  15879. David Jokinen
  15880. Ground Zero Software
  15881. ground@interlink.net
  15882. =========================================================================
  15883. Date:         Wed, 16 Nov 1994 17:18:21 -0500
  15884. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15885. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15886. From:         Jason Komaromi - GEOG/W94 <jkomarom@ACS.RYERSON.CA>
  15887. Subject:      Re: unsub
  15888. In-Reply-To:  <9411161857.AA64859@hermes.acs.ryerson.ca>
  15889.  
  15890. Unsubscribe Jason Komaromi
  15891. =========================================================================
  15892. Date:         Wed, 16 Nov 1994 16:35:19 -0600
  15893. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15894. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15895. From:         Fred Terry <pfterry@LKS.CSI.COM>
  15896. Subject:      AAAAARRRGGGHHHH
  15897.  
  15898. Save this mail message. It includes all the e-mail addresses you need when
  15899. dealing with the Mac Scripting mailing list.
  15900.  
  15901. *** To Unsubscribe from this list:
  15902.  
  15903. Send to: LISTSERV@dartmouth.edu
  15904. Subject: unsubscribe
  15905. Message: signoff macscrpt
  15906.  
  15907.  
  15908. *** To subscribe to this list:
  15909.  
  15910. Send to: LISTSERV@dartmouth.edu
  15911. Subject: subscribe
  15912. Message: subscribe macscrpt <your full name here>
  15913.  
  15914.  
  15915. *** To receive the mail as daily digest:
  15916.  
  15917. Send to: LISTSERV@dartmouth.edu
  15918. Subject: digest
  15919. Message: set macscrpt digest
  15920.  
  15921.  
  15922. *** To get other info on using this automated system:
  15923.  
  15924. Send to: LISTSERV@dartmouth.edu
  15925. Subject: help
  15926. Message: help
  15927.  
  15928.  
  15929. *** To ask the human moderators a question:
  15930.  
  15931. Send to: MacScripting-Request@dartmouth.edu
  15932.  
  15933.  
  15934. *** To send a message to the mailing list:
  15935.  
  15936. Send to: MacScripting@dartmouth.edu
  15937.  
  15938.  
  15939. Thanks.
  15940.  
  15941. -The Moderators (a very offcial way of saying "Fred & Andy")
  15942. =========================================================================
  15943. Date:         Wed, 16 Nov 1994 17:49:03 -0500
  15944. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15945. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15946. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  15947. Subject:      Re: FMP Timeout Problem!
  15948.  
  15949. >Mark:
  15950. >
  15951. >Thanks for your enlightening explanation regarding FileMaker timing out on
  15952. >script calls.
  15953. >
  15954. >IUve begun implementing the industrial-strength fix you described, but IUve
  15955. >run into one problem. The apple event handler you specified doesnUt compile=
  15956. :
  15957. >
  15958. >                on =3DABevent FMPXDONE=3DBB
  15959. >                        set okContinue to true
  15960. >                end =3DABevent FMPXDONE=3DBB
  15961. >
  15962. >I get a dialog box that says: RExpected function name, command name or
  15963. >function
  15964. >name but found R=3DS.
  15965. >
  15966. >Also, an observation (please tell me if IUm wrong):
  15967. >
  15968. >Your technique of having the FileMaker Pro script send an FMPX/DONE event
  15969. >assumes that the called script does not call subscripts that are also calle=
  15970. d
  15971. >by the AppleScript.
  15972. >
  15973. >For example, letUs say I want to call FileMaker script x, and have x confir=
  15974. m
  15975. >its
  15976. >completion by sending the DONE event. Given this scenario, I canUt call
  15977. >script
  15978. >x
  15979. >from within script y and then call script y from my AppleScript, because th=
  15980. e
  15981. >DONE event would be sent as soon as script x is completed, not after y is
  15982. >completed.
  15983. >
  15984. It doesn't compile because you haven't use the chevron characers.
  15985. To create the chevron characters =AB=BB, use option-\ and shift-option-\.
  15986.  
  15987. As far as your other question I'm not sure what you mean but it sounds like
  15988. it should be able to be done.  Performing subscripts should not change the
  15989. equation.
  15990.  
  15991. Mark Hadfield
  15992. hadfield@sickkids.on.ca
  15993. The Hospital For Sick Children
  15994. =========================================================================
  15995. Date:         Wed, 16 Nov 1994 16:10:10 -0700
  15996. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15997. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  15998. From:         Matthew Frederick <mfred@AMUG.ORG>
  15999. Subject:      Re: Key presses and timing query
  16000.  
  16001. >Sorry to ask such a basic question but can anyone tell me how to get back
  16002. >which key a user has pressed from within Applescript?
  16003.  
  16004. Try the Jon's Commands OSAX
  16005. (available via FTP at gaea.kgs.ukans.edu:applescript/)
  16006. It has a command called "keys pressed" that works like a charm.
  16007.  
  16008. >While I'm at it, does anyone know of a more accurate way of timing an
  16009. >operation in Applescript other than using the time to the nearest second?
  16010. >Tenths of a second would be good enough.
  16011.  
  16012. Again, Jon's Commands to the rescue -- it has a command called "the ticks"
  16013. which tells you the current value of the system's tick count, which I
  16014. believe is measured in 60ths of a second.
  16015.  
  16016. Boy those commands are great!
  16017.  
  16018. Matthew
  16019.  
  16020. ----------------------------------------------------------------------------
  16021. --------
  16022. "Believe nothing, no matter where you read it, or who said it -- even if I
  16023. have said
  16024.  it -- unless it agrees with your own reason and your common sense.
  16025. --The Buddha
  16026. ----------------------------------------------------------------------------
  16027. --------
  16028. Matthew Frederick, Phoenix, Arizona, USA  (mfred@amug.org)
  16029. =========================================================================
  16030. Date:         Wed, 16 Nov 1994 17:52:18 +0000
  16031. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16032. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16033. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  16034. Subject:      Re: backgrounding an applescript application
  16035.  
  16036. Get ScriptHider from the gaea ftp site.
  16037.  
  16038.  
  16039. >I want to know how to make an applescript saved as a stay open application
  16040. >stay in the background (as in, not appearing in the application menu) at
  16041. >all times.
  16042. >
  16043. >Here's what I'm trying to do: I have a little script that, if it's two
  16044. >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  16045. >database, and then quits it. I'm doing this so that the Today function gets
  16046. >recalculated every day and at a time when no one is using it so they don't
  16047. >have to sit through the calculation.
  16048. >Clearly, this script needs to be open at all times, and I can't trust the
  16049. >users of the system not to quit it if they see it in the application menu.
  16050. >Hence my question.
  16051. >
  16052. >I tried a horrendous hack which, not surprisingly, didn't work: I opened
  16053. >the size resource with ResEdit and checked the "Always Background" bit.
  16054. >When launched, the script did in fact go into the background, but it also
  16055. >crashed my computer when I checked the application menu.
  16056. >
  16057. >If anyone had other ideas about how to do this, that would be appreciated
  16058. >too. I tried to use Cron to do this, but couldn't for the life of me get it
  16059. >to open a file. I could beep with it, flash dialogs, open a _program_,
  16060. >etcetera, but I absolutely couldn't get it to open a file.
  16061. >
  16062. >Any help would be appreciated. Thanks.
  16063. >
  16064. >Aaron Brockett
  16065. >abrocke1@cc.swarthmore.edu
  16066.  
  16067. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  16068.          www server: http://josaiah.sewanee.edu/
  16069.         Elomense(MUD): josaiah.sewanee.edu 1999 )
  16070. =========================================================================
  16071. Date:         Wed, 16 Nov 1994 15:55:24 -0800
  16072. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16073. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16074. From:         Doug Baron <userland@NETCOM.COM>
  16075. Subject:      Re: Listserv scripts on the Mac (Frontier)
  16076.  
  16077. >>
  16078. >>My only suggestion would be that you might use Frontier. I know that Dave
  16079. >>Winer has implemented pretty much what you descibe with just Frontier and
  16080. >>Eudara alone. No need for the scriptable finder, osax, or anything else to
  16081. >>get the job done.
  16082. >>
  16083. >>Doug
  16084. >
  16085. >where can i get this? does it work with the frontier runtime.
  16086.  
  16087. I don't know if Dave is sharing his scripts at this point. Probably not,
  16088. would be my guess. I'll ask him. But in any case, it really shouldn't be
  16089. that hard to write. It's mostly a matter of text parsing and maintaining
  16090. tables (lists). I would expect any such system to work fine with Runtime.
  16091.  
  16092. Doug
  16093. =========================================================================
  16094. Date:         Wed, 16 Nov 1994 20:31:05 +0000
  16095. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16096. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16097. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  16098. Subject:      I got this?
  16099.  
  16100. Any one ever gotten this from the listserv here?:
  16101.  
  16102. Sorry. Your message could not be delivered:
  16103. Message contained no valid addresses.
  16104.  
  16105. The subject line was: NDN: Newbie on Timer function
  16106. and I never sent a message like that. Any ideas?
  16107.  
  16108. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  16109.          www server: http://josaiah.sewanee.edu/          )
  16110. =========================================================================
  16111. Date:         Thu, 17 Nov 1994 20:03:17 -0600
  16112. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16113. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16114. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  16115. Subject:      Re: Script Editor WorldScript bug fix?
  16116.  
  16117. I never noticed the problem under 7.1.2, AppleScript 1.1, and Script Editor
  16118. 1.1 (or 1.1.1, which I used for a week or so), but it was one of the first
  16119. things I noticed after installed System 7.5. I'm now using B&W formatting for
  16120. my scripts, which is less informative but works better.
  16121.  
  16122. I've noticed something else that's strange, though it might fall under the
  16123. category of a system problem. My shared libraries, ObjectSupportLib and
  16124. AppleScriptLib have had generic icons ever since I installed System 7.5. Has
  16125. anyone else noticed this and isn't it odd?
  16126.  
  16127.  ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
  16128.  
  16129. Too minor for Power Macs -- do the earlier versions of the script editor
  16130. have the "off by n" clicking problem under script editor 1.1 or 1.0?
  16131.  
  16132. Kevin Purcell      Attachmate Corp        (206) 649-6489
  16133. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  16134. =========================================================================
  16135. Date:         Thu, 17 Nov 1994 20:22:45 -0600
  16136. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16137. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16138. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  16139. Subject:      Re: backgrounding an applescript application
  16140.  
  16141. I'm sure others here will offer better solutions, but I'm running certain
  16142. applets overnight using QuicKeys' timer function.
  16143.  
  16144. For instance, I have a Check Mail applet that I run at the same time every
  16145. morning. Rather than having it launch as a startup script, I opted to handle
  16146. it this way because I have three other startup scripts and wanted to give
  16147. this one full attention when it was running since they all seem to get
  16148. launced concurrently.
  16149.  
  16150. Also, I tried Chron when it was version 1.0 and it ran applets fine. It was
  16151. just too  unstable at that time for my uses. I should probably look at one of
  16152. the newer version because I really liked the concept.
  16153.  
  16154. Dennis L. Whiteman
  16155. THE ULTIMATE FREELANCER
  16156. ultimate@mail.icon.net
  16157.  
  16158.  ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
  16159.  
  16160. Here's what I'm trying to do: I have a little script that, if it's two
  16161. minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  16162. database, and then quits it. I'm doing this so that the Today function gets
  16163. recalculated every day and at a time when no one is using it so they don't
  16164. have to sit through the calculation.
  16165. Clearly, this script needs to be open at all times, and I can't trust the
  16166. users of the system not to quit it if they see it in the application menu.
  16167. Hence my question....
  16168.  
  16169. Any help would be appreciated. Thanks.
  16170.  
  16171. Aaron Brockett
  16172. abrocke1@cc.swarthmore.edu
  16173. =========================================================================
  16174. Date:         Wed, 16 Nov 1994 21:32:36 -0800
  16175. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16176. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16177. From:         "Allan R. Crump Jr" <jhhw@CRL.COM>
  16178. Subject:      OSAX source??
  16179.  
  16180. I am an avid learner in programming and have enjoyed every moment of
  16181. putting the finishing touches on my first application. For my next
  16182. project, I am trying to finish up my first OSAX, written in Think Pascal.
  16183. I am having a bit of trouble however, with the compiler complaining that
  16184. "THEPORT" is not defined. I have insured that all of the correct
  16185. libraries are added to the project and in the right order, and that my
  16186. syntax is correct.
  16187.  
  16188. Would someone (preferably a Pascal programmer) be willing to post or
  16189. forward some source code on the creation of their OSAX so I can compare and
  16190. see what I may be doing wrong ?  There seems to be little sample code in
  16191. pascal available, and I feel like I'm flying by the seat of my pants here.
  16192.  
  16193. Allan
  16194. =========================================================================
  16195. Date:         Wed, 16 Nov 1994 23:07:52 -0800
  16196. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16197. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16198. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  16199. Subject:      Re: Script Editor WorldScript bug fix?
  16200.  
  16201. >>AppleScript has always implemented this scheme.  System 7.5 had no changes
  16202. >>to AppleScript (well, OK, they recompiled it with a VERY minor Script
  16203. >>Editor WorldScript bug fix).
  16204. >
  16205. >Too minor for Power Macs -- do the earlier versions of the script editor
  16206. >have the "off by n" clicking problem under script editor 1.1 or 1.0?
  16207.  
  16208.  
  16209. It's not just Script Editor which has the problem...it just shows up more
  16210. often in multi-styled lines such as scripts.  And it's not "off by one."
  16211. [Note that the farther right you click, the bigger the error, provided
  16212. there are a bunch of style runs, such as you can get by referencing a file
  16213. deep in a folder nest.]
  16214.  
  16215. Having noted that, select the whole script, Copy, and Paste the script into
  16216. SimpleText.  Note that the incorrect selection "follows" the script.
  16217.  
  16218. The fix shouldn't come from the AppleScript team...it seems to need to come
  16219. from whoever has custody of the WorldScript=81 Power Adaptor extension thing=
  16220. .
  16221.   --John
  16222.  
  16223. ----
  16224. On my machine with my settings, this script (that reveal is all one line,
  16225. and the folder "Metrowerks..." part fits in the right edge of a wide script
  16226. editor window, and it's off by about 3 1/2 in that particular "folder":
  16227.  
  16228. tell application "Finder"
  16229.         reveal file "AEObjects.h" of folder "CIncludes" of folder
  16230. "AppleScript" of folder "System Extras =9F" of folder "Metrowerks C/C++ =9F"=
  16231.  of
  16232. folder "CodeWarrior" of disk "Lopez"
  16233. end tell
  16234.  
  16235. --
  16236. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  16237. =========================================================================
  16238. Date:         Wed, 16 Nov 1994 23:07:56 -0800
  16239. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16240. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16241. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  16242. Subject:      Re: backgrounding an applescript application
  16243.  
  16244. At 10:35 11/16/94, Aaron Brockett wrote:
  16245. >If anyone had other ideas about how to do this, that would be appreciated
  16246. >too. I tried to use Cron to do this, but couldn't for the life of me get it
  16247. >to open a file. I could beep with it, flash dialogs, open a _program_,
  16248. >etcetera, but I absolutely couldn't get it to open a file.
  16249.  
  16250. Cron should be able to open a Script Application, containing your script to
  16251. quit FileMaker and restart it.  [I haven't used Cron...I do things like
  16252. that with Frontier's scheduler suite (but not much, since my schedule is to
  16253. variable to know when I want what done on a hands-off basis.]
  16254.  
  16255.    --John
  16256.  
  16257. --
  16258. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  16259. =========================================================================
  16260. Date:         Thu, 17 Nov 1994 03:01:23 -0500
  16261. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16262. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16263. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  16264. Subject:      Changing Folder and File Visibility
  16265. In-Reply-To:  <199411170505.AAA05397@acme.freenet.columbus.oh.us>
  16266.  
  16267. Michael Doub asks:
  16268. > Is anyone aware of a osaxen that would allow you to
  16269. >  control the visability of a folder or a file from
  16270. >  AppleScript?
  16271.  
  16272. One of the commands in the XCMD OSAX is "Set Show Or Hide Folder".
  16273.  
  16274. I don't know about doing files, however.
  16275. =========================================================================
  16276. Date:         Thu, 17 Nov 1994 00:16:16 -0800
  16277. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16278. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16279. From:         Jon Pugh <jonpugh@NETCOM.COM>
  16280. Subject:      Re: backgrounding an applescript application
  16281.  
  16282. Dennis Whiteman <ultimate@MAIL.ICON.NET> wrote:
  16283. >I'm sure others here will offer better solutions, but I'm running certain
  16284. >applets overnight using QuicKeys' timer function.
  16285.  
  16286. I'm on it.  ;)
  16287.  
  16288. >For instance, I have a Check Mail applet that I run at the same time every
  16289. >morning. Rather than having it launch as a startup script, I opted to handle
  16290. >it this way because I have three other startup scripts and wanted to give
  16291. >this one full attention when it was running since they all seem to get
  16292. >launced concurrently.
  16293.  
  16294. The trick to avoiding the concurancy is to write a script runner.  I'm
  16295. leaving it as an exercise for the reader, but here are a few ideas.
  16296.  
  16297. First off, use a property to store either the scripts themselves or aliases
  16298. to the script files.  You could drop files onto the script to make it
  16299. remember them.  You could put up a dialog when you drop a file which would
  16300. allow you to delete files from the list or whatever configuration details
  16301. you might need.  This would all be done in the open handler.
  16302.  
  16303. Or you can simply edit all the stuff into the code, which has the benefit
  16304. of being decompilable and preconfigured.  ;)
  16305.  
  16306. Then in the idle handler you would step through the list and do something like:
  16307.  
  16308. tell item 1 of scriptList to run
  16309.  
  16310. for the saved script version or, for the stored alias version:
  16311.  
  16312. set s to load script item 1 of scriptList
  16313. tell s to run
  16314. store script s in item 1 of scriptList replacing yes
  16315.  
  16316. You need to save the script in case it modifies any of its properties.
  16317. This will save them onto disk, while the first version will save them, but
  16318. only within the master script file's copy.  Once again, it's your goal
  16319. which decides which way you should implement it.
  16320.  
  16321. You could also vary the technique to store a list of files to run a script
  16322. on, or any of a zillion permutations.  Regardless, you can put this script
  16323. into your startup folder and it will run your scripts, one at a time.
  16324.  
  16325. Jon
  16326. =========================================================================
  16327. Date:         Thu, 17 Nov 1994 03:30:03 -0500
  16328. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16329. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16330. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  16331. Subject:      buyer's remorse
  16332.  
  16333. When I heard about the System 7.5 upgrade I thought, "that sounds like a
  16334. good deal. I can get the Scriptable Finder, which I otherwise would have
  16335. to pay at least $25 for, and all that other stuff thrown in for a few
  16336. bucks more."
  16337.  
  16338. Now that I've been struggling to live with 7.5 for awhile, I feel I made a
  16339. bad decision. If I'd bought the Finder thingee, I would have gotten some
  16340. documentation with it and still been able to use my old system which
  16341. worked with everything I was trying to run on it. (And, yes, another $25
  16342. bucks here or there  _is_ a big deal to me. If you want to try being my
  16343. agent and making my surplus of talents a boon rather than an impediment to
  16344. my income you're welcome, otherwise keep your opinions on the value of a
  16345. dollar to yourselves.)
  16346.  
  16347. I'm assuming, anyway, from my one experiment with it that I _can't_ use
  16348. the Finder that came with 7.5 with my 7.1 System. It seemed to work at
  16349. first, but I couldn't move anything to or from the Desktop. Or, was that
  16350. just because my way of attempting to disable the old Finder without
  16351. actually throwing it away was to put it on the Desktop? Was that my
  16352. mistake? Is there any way of using the Scriptable Finder as it came with
  16353. 7.5 with the old System.
  16354.  
  16355. I suppose I'll want to throw in the towel and keep living in the future,
  16356. anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
  16357. the moment, aside from the pretty little desktop pattern I doodled out
  16358. late one night. The crashes I get are so random and unreproducible, I
  16359. don't know where to begin to stabilize things. Anyone seen any
  16360. compilations of actual real figured out incompatabilities anywhere?
  16361.  
  16362. B.
  16363. =========================================================================
  16364. Date:         Thu, 17 Nov 1994 04:02:47 -0500
  16365. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16366. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  16367. From:         system@MAIL1.WYETH.COM
  16368. Subject:      Service Message
  16369.  
  16370. --Boundary (ID M3oYQ5jm66kQ1zkXsNv/aQ)
  16371. Content-type: TEXT/REPORT
  16372.  
  16373. Report on your message to: /U=Unknown/@mr.wyeth.com
  16374. Reason: Unable to transfer; message formatting problem (1)
  16375. Diagnostic: Maximum time expired (5)
  16376. Supplementary information: Message was undeliverable to Microsoft mail.  Error
  16377.  confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  16378. Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
  16379.  
  16380. --Boundary (ID M3oYQ5jm66kQ1zkXsNv/aQ)
  16381. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  16382.  
  16383. From: Systems, Macintosh S
  16384. Date: Wed, Nov 16, 1994 11:00 PM
  16385. Subject: MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
  16386. To: Doherty, John; Mobilio, Dominick
  16387. File(s): Attach.Txt1
  16388.  
  16389. Regarding Message ID : 10400071114991/585236@MAIL1
  16390. From: NAME: Macintosh Scripting Systems
  16391. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  16392. Author: NAME: Automatic digest processor
  16393. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
  16394. To: NAME: Recipients of MACSCRPT digests
  16395. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  16396.  
  16397. Date      : 16-NOV-1994 23:00:23.00
  16398. There are 39 messages totalling 1233 lines in this issue.
  16399.  
  16400. Topics of the day:
  16401.  
  16402.   1. "Get Terminology" event question
  16403.   2. Sending raw events to FaceSpan (3)
  16404.   3. Listserv scripts on the Mac
  16405.   4. MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994 (2)
  16406.   5. Re(2): Listserv scripts on the Mac
  16407.   6. Newbie on Timer function
  16408.   7. Re (2)
  16409.   8. Changing Folder and File Visibility (2)
  16410.   9. Key presses and timing query (3)
  16411.  10. unsub (3)
  16412.  11. FMP Timeout Problem! (3)
  16413.  12. Sending raw events to Fa
  16414.  13. Script Editor WorldScript bug fix? (2)
  16415.  14. RE- FMP & Picture fields
  16416.  15. HyperCard + Excel Questions
  16417.  16. backgrounding an applescript application (3)
  16418.  17. Stack overflow error
  16419.  18. NDN: Newbie on Timer function
  16420.  19. AOCE listservs (was Re: Listserv scripts on the Mac)
  16421.  20. Frontier: dialog.runModeless question
  16422.  21. RE-FMP Creating a new recor
  16423.  22. Re(2): FMP Timeout Problem!
  16424.  23. AAAAARRRGGGHHHH
  16425.  24. Listserv scripts on the Mac (Frontier)
  16426.  25. I got this?
  16427.  
  16428. ----------------------------------------------------------------------
  16429.  
  16430. Date:    Wed, 16 Nov 1994 00:11:22 -0800
  16431. From:    Jon Pugh <jonpugh@NETCOM.COM>
  16432. Subject: Re: "Get Terminology" event question
  16433.  
  16434. Brian Hall <mspace@NETCOM.COM> wrote:
  16435. >
  16436. >It used to be that an app had to support the "Get Terminology" event if
  16437. >people were to be able to write:
  16438. >tell application "foo" of machine "bar"
  16439. >  whatever
  16440. >end tell
  16441. >
  16442. >So that SE could syntax check.
  16443.  
  16444. I don't recall this ever being the case.  Most likely you didn't have
  16445. AppleScript installed on the remote machine.  I'm pretty sure that you need
  16446. to have AppleScript there so that it has the system GetTerminology handler
  16447. installed.  I suppose implementing one would work, but it's not the
  16448. simplest solution.  ;)
  16449.  
  16450. >System 7.5 to the rescue:
  16451. >It seems that the version of AppleScript that ships with 7.5 must install a
  16452. >system wide handler for this event, so even if the target app *does not*
  16453. >support the GT event, the extension will suck the resource out the app and
  16454. >pass it back for you. This is mostly a good thing.  The only apps that
  16455. >should mind are those that have dynamic 'aete' - and are there any yet?
  16456.  
  16457. AppleScript has always implemented this scheme.  System 7.5 had no changes
  16458. to AppleScript (well, OK, they recompiled it with a VERY minor Script
  16459. Editor WorldScript bug fix).
  16460.  
  16461. Also, as we were discussing a few days ago, Quark is the only app I know
  16462. which supports dynamic terminologies, but I have yet to see an extension
  16463. which has a dictionary.
  16464.  
  16465. >A side effect of this may be that if the app *is running* on that remote
  16466. >machine, perhaps it would load the resource in that heap? (A guess)
  16467.  
  16468. I believe that you MUST have the remote app running in order to script it.
  16469. Someone needs to be the target of the GetTerminology event.  As I stated
  16470. before, the resource gets loaded, detatched and returned (copied) in the
  16471. GetTerminology reply.  The original should be purgeable, but I don't think
  16472. it gets marked so by AppleScript (this is a good thing for the
  16473. investigative among you to check).
  16474.  
  16475. Jon
  16476.  
  16477. ------------------------------
  16478.  
  16479. Date:    Wed, 16 Nov 1994 00:11:25 -0800
  16480. From:    Jon Pugh <jonpugh@NETCOM.COM>
  16481. Subject: Re: Sending raw events to FaceSpan
  16482.  
  16483. Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM> said:
  16484. >
  16485. >Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
  16486. >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  16487. >> the kind sent from Filemaker ie. an event class and an event id)?
  16488. >
  16489. >> I can send event from Filemaker to an applet created with the script editor
  16490. >> but not to an applet created with FaceSpan.
  16491. >
  16492. >I tried this out, and ran into the same difficulty you had. Events that I
  16493. >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
  16494. >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
  16495. >them on to the script component to let it try to handle them.
  16496. >
  16497. >This struck me as odd, because other events (calls to osaxen and other
  16498. >system-
  16499. >handled events) had to make it. So I tried a 'custom' event with an event
  16500. >class of 'aevt'. Ta da! It worked.
  16501. >
  16502. >That's the secret: use an event class of 'aevt'. You could also try class
  16503. >'syso', but I noticed some wierd behaviour when I tried this out, so I would
  16504. >not advise it.
  16505.  
  16506. I can explain all of this.  FaceSpan registers its events in suites.  So,
  16507. it registers handlers for 'aevt****', 'core****' and 'misc****', among
  16508. others.  Thus, the custom event you were trying to accept wouldn't have a
  16509. handler installed for it.  If you made it fall into one of these suites, it
  16510. would have a handler installed, although there's no guarentee that an app
  16511. will do anything sensible with the event once the handler got it.
  16512.  
  16513. I would have expected that applets would do the same thing that Hypercard
  16514. does, which is to install a '********' handler and just deal with whatever
  16515. comes in.  They don't though.  They register a quit event and install a
  16516. phac handler (that's the AEInstallSpecialHandler with keyPreDispatch which
  16517. equals 'phac' and is not named after Phac Le Tuan).  This phac handler gets
  16518. every event BEFORE it gets sent to its proper handler.  I don't know why
  16519. its done this way, but I'll see if I can find out.  It's probably just a
  16520. dispatch optimization.
  16521.  
  16522. As a final note, the reason why 'syso' events go weird is that the "choose
  16523. folder" osax registers as the 'syso****' handler.  This means that any
  16524. events with class 'syso' and are not handled by an explicit handler, get
  16525. sent there and you get the Choose Folder dialog.  I think this might
  16526. qualify as a bug.  Someone should try finding the "choose folder" event in
  16527. the aete and change the osax name to match that and see if it still works.
  16528. I wonder if there are any other 'syso' events that it handles.  Time to
  16529. snoop the code, I guess.  ;)
  16530.  
  16531. Jon
  16532.  
  16533. ------------------------------
  16534.  
  16535. Date:    Wed, 16 Nov 1994 00:15:34 -0800
  16536. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  16537. Subject: Re: Listserv scripts on the Mac
  16538.  
  16539. >Hello,
  16540. >
  16541. >Someone recently asked on the info-mac list about being able to provide
  16542. >listserv email list management and processing on the Mac.  While I haven't
  16543. >seen anything to do this (at least in shareware), it occurred to me that
  16544. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  16545. >the mac, that this might be possible through some scripting, so I thought I
  16546. >would run this by you and see if anyone has worked on this.
  16547.  
  16548. This is the sort of largish job I would tend to do with Frontier, rather
  16549. than with AppleScript.  [Eudora would be fine as the mailing application.]
  16550. Several of Frontier's capabilities make sense here (your list might be an
  16551. outline in the Frontier database, rather than a separate text file.  The
  16552. outline editor in Frontier is nicely scriptable.
  16553.  
  16554.    --John
  16555.  
  16556. --
  16557. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  16558.  
  16559. ------------------------------
  16560.  
  16561. Date:    Wed, 16 Nov 1994 00:37:09 -0800
  16562. From:    "Alex L. Bangs" <bangs@NETCOM.COM>
  16563. Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
  16564.  
  16565. >From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  16566. >Subject: Accessing the OSA from C
  16567. >
  16568. >OK, I see the book on how to do the OSACompile and all that.
  16569. >
  16570. >How do I check if these traps are available? There doesn't seem to be a
  16571. >Gestalt selector for same, nor can I find a way of checking directly.
  16572.  
  16573. I wondered the same when I first tried to do this... when you try to
  16574. open the component, it will return NULL if there is no component. I don't
  16575. know if this works on System 6, but on System 7, it will return NULL if
  16576. AppleScript is not installed. I don't know if there is a Gestalt call
  16577. for the Component Manager...
  16578.  
  16579. ex.
  16580. gScriptingComponent = OpenDefaultComponent(kOSAComponentType,
  16581.                                              kAppleScriptSubtype);
  16582.  
  16583. To check if AppleScript loaded (later in program) ...
  16584.  
  16585. if (gScriptingComponent != NULL)
  16586. {
  16587. ... do OSAExecute, etc.
  16588. }
  16589.  
  16590. BTW, a good article/sample to use if you are trying to get started with OSA
  16591. calls is in Apple's "develop" magazine, issue 18 (June 1994): "Programming
  16592. for Flexibility: The Open Scripting Architecture" by Paul G. Smith.
  16593.  
  16594. Re: the comment "The Gestalt selector is gestaltAppleEventsAttr ('evnt')",
  16595. that will tell you if AppleEvents are present, but not if AppleScript is...
  16596.  
  16597.  
  16598. -- Alex
  16599.  
  16600. ------------------------------
  16601.  
  16602. Date:    Wed, 16 Nov 1994 04:34:15 -0500
  16603. From:    David Jokinen <ground@INTERLINK.NET>
  16604. Subject: Re(2): Listserv scripts on the Mac
  16605.  
  16606. >Someone recently asked on the info-mac list about being able to provide
  16607. >listserv email list management and processing on the Mac.  While I haven't
  16608. >seen anything to do this (at least in shareware), it occurred to me that
  16609. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  16610. >the mac, that this might be possible through some scripting, so I thought I
  16611. >would run this by you and see if anyone has worked on this.
  16612.  
  16613. I, too, would like to offer a Macintosh-based list server. In fact, I would
  16614. very much like to get involved in creating it.
  16615.  
  16616. I wonder what would happen if we were to try this instead via PowerTalk
  16617. gateways, which will offer the potential for a multi-system listserv
  16618. (probably the world's first!) The concept of messages coming in and going out
  16619. via any combination of carriers is exciting, especially when you consider
  16620. that PowerTalk automatically delivers messages in the best possible format,
  16621. not the least common format.
  16622.  
  16623. To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
  16624. QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
  16625. Internet one, in particular, is a dream. I heartily recommend Mail*Link
  16626. PT/INET from StarNine. Its handling of enclosures is totally transparent,
  16627. plus you get to use all the fancy address catalogs.
  16628.  
  16629. So the plan would be: incoming->PowerShare->AOCE
  16630. daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
  16631. the daemon. PowerRules (now owned by Banyan) was a first attempt in the
  16632. daemon area, but I know something better is possible. Just look at the sheer
  16633. size of "Inside Macintosh: AOCE Application Interfaces." :)
  16634.  
  16635. David Jokinen
  16636. Ground Zero Software
  16637. ground@interlink.net
  16638.  
  16639. ------------------------------
  16640.  
  16641. Date:    Wed, 16 Nov 1994 10:44:50 +0100
  16642. From:    Chris Remie <chris@MEDIAMATIC.NL>
  16643. Subject: Newbie on Timer function
  16644.  
  16645. Hi,
  16646. I'm new here so have mercy.
  16647. Is there a way to make a script that performs a task at a certain time every
  16648.  day?
  16649. Thanks,
  16650. Chris Remie
  16651.  
  16652. Mediamatic Magazine
  16653. Mediamatic Interactive Publishing
  16654.  
  16655. postbus 17490
  16656. 1001 JL  Amsterdam
  16657. the Netherlands
  16658.  
  16659. vox: +31 - 20 626 6262
  16660. fax: +31 - 20 626 3793
  16661. www: http://mmol.mediamatic.nl
  16662.  
  16663. ------------------------------
  16664.  
  16665. Date:    Wed, 16 Nov 1994 08:36:40 -0500
  16666. From:    Gary Morrison <MORRISG@ORG.BITNET>
  16667. Subject: Re
  16668.  
  16669. unsubcribe
  16670.  
  16671. ------------------------------
  16672.  
  16673. Date:    Wed, 16 Nov 1994 08:43:23 -0500
  16674. From:    "Michael D. Doub" <doub@DG-RTP.DG.COM>
  16675. Subject: Changing Folder and File Visibility
  16676.  
  16677. Is anyone aware of a osaxen that would allow you to control the visability
  16678. of a folder or a file from AppleScript?  A scriptable version of the
  16679. BlindFold application would do the trick too.  Does it exist?
  16680.  
  16681. Thanks
  16682.   Mike
  16683.  
  16684. ------------------------------
  16685.  
  16686. Date:    Wed, 16 Nov 1994 14:23:23 +0000
  16687. From:    David Davies <d.a.davies@BHAM.AC.UK>
  16688. Subject: Key presses and timing query
  16689.  
  16690. Sorry to ask such a basic question but can anyone tell me how to get back
  16691. which key a user has pressed from within Applescript?
  16692.  
  16693. While I'm at it, does anyone know of a more accurate way of timing an
  16694. operation in Applescript other than using the time to the nearest second?
  16695. Tenths of a second would be good enough.
  16696.  
  16697. Thanks,
  16698.  
  16699. David Davies
  16700.  
  16701. ------------------------------
  16702.  
  16703. Date:    Wed, 16 Nov 1994 08:55:45 -0600
  16704. From:    Fred Terry <pfterry@LKS.CSI.COM>
  16705. Subject: Re: Re
  16706.  
  16707. >unsubcribe
  16708.  
  16709. Send your request to listserv@dartmouth.edu in the form
  16710.  
  16711. signoff macscrpt
  16712.  
  16713. ------------------------------
  16714.  
  16715. Date:    Wed, 16 Nov 1994 12:26:21 AST4ADT
  16716. From:    LEBLANR@UMONCTON.CA
  16717. Subject: unsub
  16718.  
  16719. unsubscribe Bob LeBlanc
  16720.  
  16721. ------------------------------
  16722.  
  16723. Date:    Wed, 16 Nov 1994 11:06:23 -0500
  16724. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  16725. Subject: Re: Sending raw events to FaceSpan
  16726.  
  16727. Mark Asked:
  16728. >>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  16729. >>the kind sent from Filemaker ie. an event class and an event id)?
  16730. >>
  16731. >>I can send event from Filemaker to an applet created with the script editor
  16732. >>but not to an applet created with FaceSpan.
  16733. >>
  16734. >>Any help our suggestions would be most appreciated.
  16735. >>Thanks in advance.
  16736. >
  16737. John responded:
  16738. >well, you have the seeds to a work-around!
  16739. >
  16740. >Just make an applet in AppleScript to receive these events, and then send
  16741. >them to the FaceSpan app via "tell" statements... that should work.
  16742. >
  16743. >- john
  16744. >
  16745. >-----------------------------------------
  16746. >js12@gte.com             GTE Laboratories
  16747. >John Schettino                Waltham, MA
  16748.  
  16749. Lets call a club a club - its not a work-around it a kludge!!  Funny enough
  16750. I hadn't thought of doing that.  Not a bad suggestion but not an ideal
  16751. solution for me.  I'm designing applets that are distrubuted to multiple
  16752. users in my institution.  If I told them 'well here filemaker for the
  16753. database, and here's an facespan applet to do functions that filemaker
  16754. can't do, oh and ya, here's another application...'.
  16755. I REALLY would like to avoid a scenario like that...
  16756.  
  16757. Mark Hadfield
  16758. hadfield@sickkids.on.ca
  16759. The Hospital For Sick Children
  16760.  
  16761. ------------------------------
  16762.  
  16763. Date:    Wed, 16 Nov 1994 10:08:49 -0600
  16764. From:    Fred Terry <pfterry@LKS.CSI.COM>
  16765. Subject: Re: unsub
  16766.  
  16767. >unsubscribe Bob LeBlanc
  16768.  
  16769. Please send your request to listserv@dartmouth.edu in the form
  16770.  
  16771. signoff macscrpt
  16772.  
  16773. ------------------------------
  16774.  
  16775. Date:    Wed, 16 Nov 1994 11:30:44 -0500
  16776. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  16777. Subject: Re: FMP Timeout Problem!
  16778.  
  16779. >IUm working on a fairly large & involved AppleScript that manipulates
  16780. >data in several FileMaker Pro files. It all seems to work really well, exce=
  16781. pt
  16782. >for one niggling--and highly frustrating--problem:
  16783. >
  16784. >When I try to obtain the number of records in the current found set,
  16785. >the event never resolves; instead, after a minute or so, I get an RAppleEve=
  16786. nt
  16787. >timed outS dialog box.
  16788. >
  16789. >The problem line is:
  16790. >
  16791. >        set rCount to (Count of Layout 1 of Window 1 Class Record)--times
  16792. >out
  16793. >
  16794. >IUve tried it with long time outs and it just doesnUt do any good.
  16795. >
  16796. >
  16797. >Please help!!!
  16798. >
  16799. >
  16800. >FYI: I had the same problem when I ran a FileMaker Script from my
  16801. >AppleScript that did a Find All. When I replaced that call with a simple
  16802. >AppleScript Tshow every record,U it no longer timed out.
  16803.  
  16804. The problem is not your 'set count to' command its the command that comes
  16805. before it. Let me guess- the line before it is triggering a Filemaker
  16806. script.  This is the crux of the problem:  when you trigger a filemaker
  16807. script, FM tells applescript that it is complete WHEN THE FM SCRIPT IS
  16808. TRIGGERED NOT WHEN THE FM SCRIPT IS COMPLETE.  Applescript assumes that FM
  16809. is done and issues the next event (your count records command).  FM  misses
  16810. the command and thus never responds back to it.  Applescript waits
  16811. patiently to hear back and eventually times out.  There are a couple of
  16812. ways around it, one a simple kludge, the other more industrial strength.
  16813.  
  16814. Simple fix:  After every 'do script filemaker script' do a repeat loop long
  16815. enough to ensure the FM script will be finished executing.
  16816.  
  16817. The simple fix is just that simple - but can cause problems if the script
  16818. is running on slower machines or if the type of FM script that is called
  16819. can have varying length of runs (ie. most take 3 seconds but one big one
  16820. takes 50 seconds - you would have to set the repeat loop to last 50 seconds
  16821. even though most are only 3 seconds...).
  16822.  
  16823. Industrial Strength fix:  In every filemaker script that is called from
  16824. applescript add a 'send apple event...' command and the end of the script.
  16825. Set the event class to FMPX. Set the event ID to DONE. Then add the
  16826. following code to your applescript:
  16827.  
  16828. property okContinue : false
  16829.  
  16830. on =ABevent FMPXDONE=BB
  16831.         set okContinue to true
  16832. end =ABevent FMPXDONE=BB
  16833.  
  16834.  
  16835. on foo()
  16836. tell application "Filemaker Pro"
  16837. Do Script FileMaker Script "whatever script you want"
  16838.   if (my canIcontinue()) is false then display dialog "Did not hear from FM
  16839. or FM script took too long to run"
  16840. count class record
  16841. .
  16842. .
  16843. .
  16844. end tell
  16845. end foo
  16846.  
  16847.  
  16848. on canIcontinue()
  16849.         global okContinue
  16850.         local startTime
  16851.         set startTime to current date
  16852.         repeat until ((current date) - (startTime)) > 200
  16853. -- how many seconds to you want to wait to hear back from Filemaker?
  16854.                 if okContinue is true then
  16855.                         set okContinue to false
  16856.                         set startTime to current date -- a small delay to
  16857. ensure FM is ready
  16858.                         repeat until ((current date) - (startTime)) > 1
  16859.                         end repeat
  16860.                         return true
  16861.                 end if
  16862.         end repeat
  16863.         set okContinue to false
  16864.         return false
  16865. end canIcontinue
  16866.  
  16867. Its much more complex but is dynamic: if the FM script only takes 4 seconds
  16868. to run applescript will be issuing the next command 5 or 6 seconds after
  16869. the FM script was called.  If the FM script takes 130 seconds to run
  16870. applescript will be issuing the next command 131 or 132 seconds later.
  16871.  
  16872.  
  16873.  
  16874. Mark Hadfield
  16875. hadfield@sickkids.on.ca
  16876. The Hospital For Sick Children
  16877.  
  16878. ------------------------------
  16879.  
  16880. Date:    Wed, 16 Nov 1994 11:41:12 -0500
  16881. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  16882. Subject: Re: Sending raw events to Fa
  16883.  
  16884. >>I wrote:
  16885. >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  16886. >> the kind sent from Filemaker ie. an event class and an event id)?
  16887. >
  16888. >> I can send event from Filemaker to an applet created with the script editor
  16889. >> but not to an applet created with FaceSpan.
  16890. >
  16891. >I tried this out, and ran into the same difficulty you had. Events that I
  16892. >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
  16893. >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
  16894. >them on to the script component to let it try to handle them.
  16895. >
  16896. >This struck me as odd, because other events (calls to osaxen and other
  16897. >system-
  16898. >handled events) had to make it. So I tried a 'custom' event with an event
  16899. >class of 'aevt'. Ta da! It worked.
  16900. >
  16901. >That's the secret: use an event class of 'aevt'. You could also try class
  16902. >'syso', but I noticed some wierd behaviour when I tried this out, so I would
  16903. >not advise it.
  16904. >
  16905. >Hope that helps (and thanks for asking cool questions),
  16906. >  Andrew
  16907. >----------------------------------------------------------------------
  16908. >Andrew T. Johnston  |
  16909. >Apple Canada, Inc.  |  Who else would claim these opinions as his own?
  16910. >atjohnst@apple.com  |
  16911.  
  16912.  
  16913.  
  16914. Whoopee!! It worked!!  You are a god!  No more faceless applets for my users!!!
  16915.  
  16916. Mark Hadfield
  16917. hadfield@sickkids.on.ca
  16918. The Hospital For Sick Children
  16919.  
  16920. ------------------------------
  16921.  
  16922. Date:    Wed, 16 Nov 1994 12:03:23 -0500
  16923. From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  16924. Subject: Re: Changing Folder and File Visibility
  16925.  
  16926. I have C code that does this; if one doesn't exist I could probably write an
  16927. osax if I knew how. :D
  16928.  
  16929. _Deirdre
  16930.  
  16931. Michael Doub asks:
  16932. > Is anyone aware of a osaxen that would allow you to
  16933. >  control the visability of a folder or a file from
  16934. >  AppleScript?  A scriptable version of the BlindFold
  16935. >  application would do the trick too.  Does it exist?
  16936.  
  16937. ------------------------------
  16938.  
  16939. Date:    Wed, 16 Nov 1994 09:38:23 -0800
  16940. From:    Kevin Purcell <kevinpu@ATM.COM>
  16941. Subject: Script Editor WorldScript bug fix?
  16942.  
  16943. >AppleScript has always implemented this scheme.  System 7.5 had no changes
  16944. >to AppleScript (well, OK, they recompiled it with a VERY minor Script
  16945. >Editor WorldScript bug fix).
  16946.  
  16947. Too minor for Power Macs -- do the earlier versions of the script editor
  16948. have the "off by n" clicking problem under script editor 1.1 or 1.0?
  16949.  
  16950. Kevin Purcell      Attachmate Corp        (206) 649-6489
  16951. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  16952.  
  16953. ------------------------------
  16954.  
  16955. Date:    Wed, 16 Nov 1994 10:11:34 U
  16956. From:    Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  16957. Subject: RE- FMP & Picture fields
  16958.  
  16959.         Reply to:   RE: FMP & Picture fields
  16960. tell application "FileMaker Pro"
  16961.      copy cellValue of cell "Picture" to thePicture
  16962. end tell
  16963.  
  16964. works fine i.e. the picture data is tored in the variable thePicture.  You
  16965. can verify this by setting this data back into the picture field in a new
  16966. record within your database.   What exactly do you want to do with the data
  16967. in thePicture after you have copied it.
  16968.  
  16969. ------------------------------
  16970.  
  16971. Date:    Wed, 16 Nov 1994 10:24:16 -0800
  16972. From:    "Alex L. Bangs" <bangs@NETCOM.COM>
  16973. Subject: HyperCard + Excel Questions
  16974.  
  16975. A few questions:
  16976.  
  16977. (1) I've been experimenting with doing AppleScript in HyperCard. The
  16978. on-line documentation is amazingly vague about transfering data back and
  16979. forth, and provides no examples. By looking at the mail merge example
  16980. stack, I saw that they are getting HyperCard data via using HyperTalk
  16981. functions called from AppleScript. I also know I can access fields
  16982. directly.
  16983.  * Question: is there a way to get direct access to global HyperTalk variables?
  16984.     I can access them when running a script from the script editor and using
  16985.     an evaluate expression, but when I try to do this inside HyperCard as
  16986.     an AppleScript script, it doesn't work.
  16987.  
  16988.  * Question: is it possible to using HyperTalk "chunking" expressions from
  16989.     AppleScript? I think the answer is know but would appreciate enlightenment.
  16990.     I'm talking about things like 'the first item of line 1 of bkgnd field "x"'
  16991.  
  16992. (2) What my script does is take a field or variable and turn it into a 2D
  16993.     list which can then be dumped into Excel via a named range of cells.
  16994.     Here's the one line I tell Excel:
  16995.      set value of Range myRange to myArray
  16996.     The problem is it executes *really* slowly, like 1 cell per second on
  16997.     a PB 170. Any idea what's going on here.
  16998.  
  16999. (3) If you'd like to take pot-shots at my script, here it is:
  17000.  
  17001. -- this script accesses all HyperCard data via a set of
  17002. -- background HyperTalk functions -- getData*()
  17003.  
  17004. on mouseUp
  17005.         set saveDelim to AppleScript's text item delimiters
  17006.         set AppleScript's text item delimiters to {","}
  17007.         set nRows to getDataNRows()
  17008.         set nCols to getDataNCols()
  17009.         set myArray to {}
  17010.         repeat with r from 1 to nRows
  17011.                 set rowItems to text items of getDataNthRow(r)
  17012.                 set rowList to {}
  17013.                 repeat with c from 1 to nCols
  17014.                         set rowList to rowList & {item c of rowItems as number}
  17015.                 end repeat
  17016.                 set myArray to myArray & {rowList}
  17017.         end repeat
  17018.         set AppleScript's text item delimiters to saveDelim
  17019.         set myRange to getDataRange()
  17020.  
  17021.         tell application "Excel"
  17022.                 activate
  17023.                 -- the following line runs painfully slowly!
  17024.                 set value of Range myRange to myArray
  17025.         end tell
  17026. end mouseUp
  17027.  
  17028. Thanks!
  17029. Alex
  17030.  
  17031. ------------------------------
  17032.  
  17033. Date:    Wed, 16 Nov 1994 13:35:10 -0500
  17034. From:    Aaron Brockett <abrocke1@CC.SWARTHMORE.EDU>
  17035. Subject: backgrounding an applescript application
  17036.  
  17037. I want to know how to make an applescript saved as a stay open application
  17038. stay in the background (as in, not appearing in the application menu) at
  17039. all times.
  17040.  
  17041. Here's what I'm trying to do: I have a little script that, if it's two
  17042. minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  17043. database, and then quits it. I'm doing this so that the Today function gets
  17044. recalculated every day and at a time when no one is using it so they don't
  17045. have to sit through the calculation.
  17046. Clearly, this script needs to be open at all times, and I can't trust the
  17047. users of the system not to quit it if they see it in the application menu.
  17048. Hence my question.
  17049.  
  17050. I tried a horrendous hack which, not surprisingly, didn't work: I opened
  17051. the size resource with ResEdit and checked the "Always Background" bit.
  17052. When launched, the script did in fact go into the background, but it also
  17053. crashed my computer when I checked the application menu.
  17054.  
  17055. If anyone had other ideas about how to do this, that would be appreciated
  17056. too. I tried to use Cron to do this, but couldn't for the life of me get it
  17057. to open a file. I could beep with it, flash dialogs, open a _program_,
  17058. etcetera, but I absolutely couldn't get it to open a file.
  17059.  
  17060. Any help would be appreciated. Thanks.
  17061.  
  17062. Aaron Brockett
  17063. abrocke1@cc.swarthmore.edu
  17064.  
  17065. ------------------------------
  17066.  
  17067. Date:    Wed, 16 Nov 1994 10:53:43 -0800
  17068. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  17069. Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
  17070.  
  17071. >>From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  17072. >>Subject: Accessing the OSA from C
  17073. >>
  17074. >>OK, I see the book on how to do the OSACompile and all that.
  17075. >>
  17076. >>How do I check if these traps are available? There doesn't seem to be a
  17077. >>Gestalt selector for same, nor can I find a way of checking directly.
  17078. >
  17079. >I wondered the same when I first tried to do this... when you try to
  17080. >open the component, it will return NULL if there is no component. I don't
  17081. >know if this works on System 6, but on System 7, it will return NULL if
  17082. >AppleScript is not installed. I don't know if there is a Gestalt call
  17083. >for the Component Manager...
  17084. >
  17085.  
  17086. The gestalt selector which lets you know whether the Component Manager is
  17087. present is gestaltComponentMgr ('cpnt'), which returns the version number
  17088. of the Component Manager (4 on my 8100 running System 7.5, your mileage may
  17089. vary).
  17090.  
  17091. If Component Manager is not available, the selector is not defined, and
  17092. Gestalt will return an error.
  17093.  
  17094. The Component Manager is available under System 6.x and System 7.0.x if and
  17095. only if QuickTime is installed*...it became part of the base System in
  17096. System 7.1
  17097.  
  17098.   --John
  17099.  
  17100. * Or a hypothetical something else which installs Component Manager in
  17101. those old Systems.  Sys 7.0 was so long ago--did AppleScript install
  17102. Component Manager, or refuse to run without it, or ...?
  17103.  
  17104. --
  17105. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  17106.  
  17107. ------------------------------
  17108.  
  17109. Date:    Wed, 16 Nov 1994 12:23:41 CST
  17110. From:    Joshua Buysse <BUYSSE@MAIN.MNDLY.UMN.EDU>
  17111. Subject: Stack overflow error
  17112.  
  17113. A fairly large script that I've been working on is consistently
  17114. giving me "Stack Overflow" errors.
  17115.  
  17116. What can I do to get this to work inside AppleScript?  Note: the
  17117. error is occuring during a tell statement to the Finder.
  17118.  
  17119. Besides that, is there any way that my script can receive
  17120. notification when a volume is mounted without doing an idle loop to
  17121. watch for it?
  17122.  
  17123. I'm using System 7.5, with the AppleScript Scripter's kit installed.
  17124.  
  17125. Thanks,
  17126. Josh Buysse
  17127.  
  17128. CAFE Mac Client designer
  17129. University of Minnesota AIS
  17130.  
  17131. ------------------------------
  17132.  
  17133. Date:    Wed, 16 Nov 1994 14:32:28 -0500
  17134. From:    Jonathan Donald <jeddak@PANIX.COM>
  17135. Subject: Re: FMP Timeout Problem!
  17136.  
  17137.  
  17138. Thanks for your enlightening explanation regarding FileMaker timing out on
  17139. script calls.
  17140.  
  17141. IUve begun implementing the industrial-strength fix you described, but IUve
  17142. run into one problem. The apple event handler you specified doesnUt compile:
  17143.  
  17144.                 on =ABevent FMPXDONE=BB
  17145.                         set okContinue to true
  17146.                 end =ABevent FMPXDONE=BB
  17147.  
  17148. I get a dialog box that says: RExpected function name, command name or
  17149. function
  17150. name but found R=S.
  17151.  
  17152. Also, an observation (please tell me if IUm wrong):
  17153.  
  17154. Your technique of having the FileMaker Pro script send an FMPX/DONE event
  17155. assumes that the called script does not call subscripts that are also called
  17156. by the AppleScript.
  17157.  
  17158. For example, letUs say I want to call FileMaker script x, and have x confirm
  17159. its
  17160. completion by sending the DONE event. Given this scenario, I canUt call
  17161. script
  17162. x
  17163. from within script y and then call script y from my AppleScript, because the
  17164. DONE event would be sent as soon as script x is completed, not after y is
  17165. completed.
  17166.  
  17167.  
  17168.  
  17169. -jd
  17170.  
  17171. ------------------------------
  17172.  
  17173. Date:    Wed, 16 Nov 1994 13:58:11 U
  17174. From:    Dennis Whiteman <ultimate@MAIL.ICON.NET>
  17175. Subject: Re: Key presses and timing query
  17176.  
  17177. > Sorry to ask such a basic question but can
  17178. > anyone tell me how to get back which key a user
  17179. > has pressed from within Applescript?
  17180.  
  17181. Jon's Commands 1.2 has the following event:
  17182.  
  17183. keys pressed: Get the keys that are currently pressed.
  17184.         keys pressed
  17185.         Result:   string  -- A list of key names.
  17186.  
  17187. Hope this helps.
  17188.  
  17189. Dennis L. Whiteman
  17190. THE ULTIMATE FREELANCER
  17191. ultimate@mail.icon.net
  17192.  
  17193. ------------------------------
  17194.  
  17195. Date:    Wed, 16 Nov 1994 12:09:04 GMT
  17196. From:    Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
  17197. Subject: NDN: Newbie on Timer function
  17198.  
  17199. Sorry. Your message could not be delivered:
  17200.  
  17201. Message contained no valid addresses.
  17202.  
  17203. ------------------------------
  17204.  
  17205. Date:    Thu, 17 Nov 1994 09:03:00 +1300
  17206. From:    "Lawrence D'Oliveiro, Waikato University, Hamilton,
  17207.          NZ" <LDO@WAIKATO.AC.NZ>
  17208. Subject: Re: AOCE listservs (was Re: Listserv scripts on the Mac)
  17209.  
  17210. David Jokinen <ground@INTERLINK.NET> writes:
  17211.  
  17212. >I wonder what would happen if we were to try this instead via PowerTalk
  17213. >gateways, which will offer the potential for a multi-system listserv
  17214. >(probably the world's first!) The concept of messages coming in and going out
  17215. >via any combination of carriers is exciting, especially when you consider
  17216. >that PowerTalk automatically delivers messages in the best possible format,
  17217. >not the least common format.
  17218. >
  17219. >To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
  17220. >QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
  17221. >Internet one, in particular, is a dream. I heartily recommend Mail*Link
  17222. >PT/INET from StarNine. Its handling of enclosures is totally transparent,
  17223. >plus you get to use all the fancy address catalogs.
  17224. >
  17225. >So the plan would be: incoming->PowerShare->AOCE
  17226. >daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
  17227. >the daemon. PowerRules (now owned by Banyan) was a first attempt in the
  17228. >daemon area, but I know something better is possible. Just look at the sheer
  17229. >size of "Inside Macintosh: AOCE Application Interfaces." :)
  17230.  
  17231. Before you get too enthused, bear in mind that the current public AOCE APIs
  17232. aren't really up to the task. PowerRules was done using APIs which were not
  17233. made generally public, because they were not guaranteed to be stable enough
  17234. for public use.
  17235.  
  17236. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  17237. Computer Services Dept                     fax: +64-7-838-4066
  17238. University of Waikato            electric mail: ldo@waikato.ac.nz
  17239. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  17240.  
  17241. ------------------------------
  17242.  
  17243. Date:    Wed, 16 Nov 1994 12:27:45 -0800
  17244. From:    David Lewis <lewis@NETCOM.COM>
  17245. Subject: Re: Frontier: dialog.runModeless question
  17246.  
  17247. >>The problem is that dialog.run is kind enough to center the
  17248. >>dialog in the screen when it draws it, but dialog.runModeless puts it up at
  17249. >>0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
  17250. >>depending on whether it's docked or undocked. Thanks.
  17251. >
  17252. >Hi, David...
  17253. >   In probing here, it appears that you can adjust the rectangle in the
  17254. >DLOG resource, and have an effect on where the dialog will be displayed.
  17255. >If I put the dialog "fairly far to the right and down", dialog.runModeless
  17256. >places it a little up and left from where dialog.run does.  If I build the
  17257. >DLOG resource so that its top left is 0,0, that's where dialog.runModeless
  17258. >places it.
  17259. >
  17260. Yeah, I can solve it in a couple of ways, all of them sub-optimal. I can
  17261. have one custom dialog file which places it off-center on one of the
  17262. screens. I can have two custom dialog files, and use the kludge of
  17263. switching between them depending on the existance of a disk I know to be
  17264. present only in the dock. (I've never figured out a gestalt selector for
  17265. the presence of a dock, but I haven't looked at the latest version of the
  17266. list.) Or I could execute this as part of the pre-display case in the
  17267. callback routine:
  17268.  
  17269.     KeyQuencer.doScript ("WaitWindow dialog open\rMoveWindow center")
  17270.  
  17271. which is visually dippy since the dialog is displayed in the wrong place
  17272. for a split second. I guess that any of them are good enough for my own
  17273. use, and I'm glad you flagged it for Doug. If there's a wish list for 4.0
  17274. still, it would be nice to have the same background timing mechanism for
  17275. dialog.run that exists for dialog.runModeless. Thanks.
  17276.  
  17277.     David
  17278.  
  17279. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  17280.  
  17281. ------------------------------
  17282.  
  17283. Date:    Wed, 16 Nov 1994 13:20:20 -0800
  17284. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  17285. Subject: Re: Sending raw events to FaceSpan
  17286.  
  17287. >Mark Asked:
  17288. >>>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  17289. >>>the kind sent from Filemaker ie. an event class and an event id)?
  17290. >>>
  17291. >>>I can send event from Filemaker to an applet created with the script editor
  17292. >>>but not to an applet created with FaceSpan.
  17293. >>>
  17294. >>>Any help our suggestions would be most appreciated.
  17295. >>>Thanks in advance.
  17296. >>
  17297. >John responded:
  17298. >>well, you have the seeds to a work-around!
  17299. >>
  17300. >>Just make an applet in AppleScript to receive these events, and then send
  17301. >>them to the FaceSpan app via "tell" statements... that should work.
  17302. >>
  17303. >>- john
  17304. >>
  17305. >>-----------------------------------------
  17306. >>js12@gte.com             GTE Laboratories
  17307. >>John Schettino                Waltham, MA
  17308. >
  17309. >Lets call a club a club - its not a work-around it a kludge!!  Funny enough
  17310. >I hadn't thought of doing that.  Not a bad suggestion but not an ideal
  17311. >solution for me.  I'm designing applets that are distrubuted to multiple
  17312. >users in my institution.  If I told them 'well here filemaker for the
  17313. >database, and here's an facespan applet to do functions that filemaker
  17314. >can't do, oh and ya, here's another application...'.
  17315. >I REALLY would like to avoid a scenario like that...
  17316. >
  17317.  
  17318. It also won't help, unless the kludge applet also translates the event into
  17319. one which you can receive in a FaceSpan applet.  But...FileMaker could send
  17320. that directly, without the kludge.  Basically, a dead end.
  17321.  
  17322.    --John
  17323.  
  17324. --
  17325. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  17326.  
  17327. ------------------------------
  17328.  
  17329. Date:    Wed, 16 Nov 1994 13:23:30 U
  17330. From:    Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  17331. Subject: RE-FMP Creating a new recor
  17332.  
  17333.                        Subject:                               Time:13:20
  17334.   OFFICE MEMO          RE:FMP Creating a new record with      Date:11/16/94
  17335. If you want to fill out all the fields in the new record then you can set the
  17336. data to layout 0 (layout 0 is a conceptual layout consisting of all the
  17337. fields defined in the database, the fields are ordered according to their
  17338. creation order).  On layouts other than layout 0 the data will also be set to
  17339. the fields according to their creation order however data will only be set
  17340. into the fields that actually exist on that layout.
  17341.  
  17342. Layout 0 has all fields in creation order.
  17343. Layout nth Layout has the fields that exist on that layout in creation order.
  17344.  
  17345. Stephen
  17346.  
  17347. ------------------------------
  17348.  
  17349. Date:    Wed, 16 Nov 1994 16:31:59 -0500
  17350. From:    David Jokinen <ground@INTERLINK.NET>
  17351. Subject: Re(2): FMP Timeout Problem!
  17352.  
  17353. Much thanks to Mark Hadfield for finally clearing up this common FileMaker
  17354. script problem. Now, could someone please clarify the meaning of the
  17355. following construct he used?
  17356.  
  17357. > on =ABevent FMPXDONE=BB
  17358. >         set okContinue to true
  17359. > end =ABevent FMPXDONE=BB
  17360.  
  17361. I presume it's some kind of AppleEvent handler, but I don't recognize the
  17362. syntax, nor could I find anything like it in the AppleScript Language Guide.
  17363.  
  17364. David Jokinen
  17365. Ground Zero Software
  17366. ground@interlink.net
  17367.  
  17368. ------------------------------
  17369.  
  17370. Date:    Wed, 16 Nov 1994 17:18:21 -0500
  17371. From:    Jason Komaromi - GEOG/W94 <jkomarom@ACS.RYERSON.CA>
  17372. Subject: Re: unsub
  17373.  
  17374. Unsubscribe Jason Komaromi
  17375.  
  17376. ------------------------------
  17377.  
  17378. Date:    Wed, 16 Nov 1994 16:35:19 -0600
  17379. From:    Fred Terry <pfterry@LKS.CSI.COM>
  17380. Subject: AAAAARRRGGGHHHH
  17381.  
  17382. Save this mail message. It includes all the e-mail addresses you need when
  17383. dealing with the Mac Scripting mailing list.
  17384.  
  17385. *** To Unsubscribe from this list:
  17386.  
  17387. Send to: LISTSERV@dartmouth.edu
  17388. Subject: unsubscribe
  17389. Message: signoff macscrpt
  17390.  
  17391.  
  17392. *** To subscribe to this list:
  17393.  
  17394. Send to: LISTSERV@dartmouth.edu
  17395. Subject: subscribe
  17396. Message: subscribe macscrpt <your full name here>
  17397.  
  17398.  
  17399. *** To receive the mail as daily digest:
  17400.  
  17401. Send to: LISTSERV@dartmouth.edu
  17402. Subject: digest
  17403. Message: set macscrpt digest
  17404.  
  17405.  
  17406. *** To get other info on using this automated system:
  17407.  
  17408. Send to: LISTSERV@dartmouth.edu
  17409. Subject: help
  17410. Message: help
  17411.  
  17412.  
  17413. *** To ask the human moderators a question:
  17414.  
  17415. Send to: MacScripting-Request@dartmouth.edu
  17416.  
  17417.  
  17418. *** To send a message to the mailing list:
  17419.  
  17420. Send to: MacScripting@dartmouth.edu
  17421.  
  17422.  
  17423. Thanks.
  17424.  
  17425. -The Moderators (a very offcial way of saying "Fred & Andy")
  17426.  
  17427. ------------------------------
  17428.  
  17429. Date:    Wed, 16 Nov 1994 17:49:03 -0500
  17430. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  17431. Subject: Re: FMP Timeout Problem!
  17432.  
  17433. >Mark:
  17434. >
  17435. >Thanks for your enlightening explanation regarding FileMaker timing out on
  17436. >script calls.
  17437. >
  17438. >IUve begun implementing the industrial-strength fix you described, but IUve
  17439. >run into one problem. The apple event handler you specified doesnUt compile=
  17440. :
  17441. >
  17442. >                on =3DABevent FMPXDONE=3DBB
  17443. >                        set okContinue to true
  17444. >                end =3DABevent FMPXDONE=3DBB
  17445. >
  17446. >I get a dialog box that says: RExpected function name, command name or
  17447. >function
  17448. >name but found R=3DS.
  17449. >
  17450. >Also, an observation (please tell me if IUm wrong):
  17451. >
  17452. >Your technique of having the FileMaker Pro script send an FMPX/DONE event
  17453. >assumes that the called script does not call subscripts that are also calle=
  17454. d
  17455. >by the AppleScript.
  17456. >
  17457. >For example, letUs say I want to call FileMaker script x, and have x confir=
  17458. m
  17459. >its
  17460. >completion by sending the DONE event. Given this scenario, I canUt call
  17461. >script
  17462. >x
  17463. >from within script y and then call script y from my AppleScript, because th=
  17464. e
  17465. >DONE event would be sent as soon as script x is completed, not after y is
  17466. >completed.
  17467. >
  17468. It doesn't compile because you haven't use the chevron characers.
  17469. To create the chevron characters =AB=BB, use option-\ and shift-option-\.
  17470.  
  17471. As far as your other question I'm not sure what you mean but it sounds like
  17472. it should be able to be done.  Performing subscripts should not change the
  17473. equation.
  17474.  
  17475. Mark Hadfield
  17476. hadfield@sickkids.on.ca
  17477. The Hospital For Sick Children
  17478.  
  17479. ------------------------------
  17480.  
  17481. Date:    Wed, 16 Nov 1994 16:10:10 -0700
  17482. From:    Matthew Frederick <mfred@AMUG.ORG>
  17483. Subject: Re: Key presses and timing query
  17484.  
  17485. >Sorry to ask such a basic question but can anyone tell me how to get back
  17486. >which key a user has pressed from within Applescript?
  17487.  
  17488. Try the Jon's Commands OSAX
  17489. (available via FTP at gaea.kgs.ukans.edu:applescript/)
  17490. It has a command called "keys pressed" that works like a charm.
  17491.  
  17492. >While I'm at it, does anyone know of a more accurate way of timing an
  17493. >operation in Applescript other than using the time to the nearest second?
  17494. >Tenths of a second would be good enough.
  17495.  
  17496. Again, Jon's Commands to the rescue -- it has a command called "the ticks"
  17497. which tells you the current value of the system's tick count, which I
  17498. believe is measured in 60ths of a second.
  17499.  
  17500. Boy those commands are great!
  17501.  
  17502. Matthew
  17503.  
  17504. ----------------------------------------------------------------------------
  17505. --------
  17506. "Believe nothing, no matter where you read it, or who said it -- even if I
  17507. have said
  17508.  it -- unless it agrees with your own reason and your common sense.
  17509. --The Buddha
  17510. ----------------------------------------------------------------------------
  17511. --------
  17512. Matthew Frederick, Phoenix, Arizona, USA  (mfred@amug.org)
  17513.  
  17514. ------------------------------
  17515.  
  17516. Date:    Wed, 16 Nov 1994 17:52:18 +0000
  17517. From:    Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  17518. Subject: Re: backgrounding an applescript application
  17519.  
  17520. Get ScriptHider from the gaea ftp site.
  17521.  
  17522.  
  17523. >I want to know how to make an applescript saved as a stay open application
  17524. >stay in the background (as in, not appearing in the application menu) at
  17525. >all times.
  17526. >
  17527. >Here's what I'm trying to do: I have a little script that, if it's two
  17528. >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  17529. >database, and then quits it. I'm doing this so that the Today function gets
  17530. >recalculated every day and at a time when no one is using it so they don't
  17531. >have to sit through the calculation.
  17532. >Clearly, this script needs to be open at all times, and I can't trust the
  17533. >users of the system not to quit it if they see it in the application menu.
  17534. >Hence my question.
  17535. >
  17536. >I tried a horrendous hack which, not surprisingly, didn't work: I opened
  17537. >the size resource with ResEdit and checked the "Always Background" bit.
  17538. >When launched, the script did in fact go into the background, but it also
  17539. >crashed my computer when I checked the application menu.
  17540. >
  17541. >If anyone had other ideas about how to do this, that would be appreciated
  17542. >too. I tried to use Cron to do this, but couldn't for the life of me get it
  17543. >to open a file. I could beep with it, flash dialogs, open a _program_,
  17544. >etcetera, but I absolutely couldn't get it to open a file.
  17545. >
  17546. >Any help would be appreciated. Thanks.
  17547. >
  17548. >Aaron Brockett
  17549. >abrocke1@cc.swarthmore.edu
  17550.  
  17551. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  17552.          www server: http://josaiah.sewanee.edu/
  17553.         Elomense(MUD): josaiah.sewanee.edu 1999 )
  17554.  
  17555. ------------------------------
  17556.  
  17557. Date:    Wed, 16 Nov 1994 15:55:24 -0800
  17558. From:    Doug Baron <userland@NETCOM.COM>
  17559. Subject: Re: Listserv scripts on the Mac (Frontier)
  17560.  
  17561. >>
  17562. >>My only suggestion would be that you might use Frontier. I know that Dave
  17563. >>Winer has implemented pretty much what you descibe with just Frontier and
  17564. >>Eudara alone. No need for the scriptable finder, osax, or anything else to
  17565. >>get the job done.
  17566. >>
  17567. >>Doug
  17568. >
  17569. >where can i get this? does it work with the frontier runtime.
  17570.  
  17571. I don't know if Dave is sharing his scripts at this point. Probably not,
  17572. would be my guess. I'll ask him. But in any case, it really shouldn't be
  17573. that hard to write. It's mostly a matter of text parsing and maintaining
  17574. tables (lists). I would expect any such system to work fine with Runtime.
  17575.  
  17576. Doug
  17577.  
  17578. ------------------------------
  17579.  
  17580. Date:    Wed, 16 Nov 1994 20:31:05 +0000
  17581. From:    Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  17582. Subject: I got this?
  17583.  
  17584. Any one ever gotten this from the listserv here?:
  17585.  
  17586. Sorry. Your message could not be delivered:
  17587. Message contained no valid addresses.
  17588.  
  17589. The subject line was: NDN: Newbie on Timer function
  17590. and I never sent a message like that. Any ideas?
  17591.  
  17592. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  17593.          www server: http://josaiah.sewanee.edu/          )
  17594.  
  17595. ------------------------------
  17596.  
  17597. Date:    Thu, 17 Nov 1994 20:03:17 -0600
  17598. From:    Dennis Whiteman <ultimate@MAIL.ICON.NET>
  17599. Subject: Re: Script Editor WorldScript bug fix?
  17600.  
  17601. I never noticed the problem under 7.1.2, AppleScript 1.1, and Script Editor
  17602. 1.1 (or 1.1.1, which I used for a week or so), but it was one of the first
  17603. things I noticed after installed System 7.5. I'm now using B&W formatting for
  17604. my scripts, which is less informative but works better.
  17605.  
  17606. I've noticed something else that's strange, though it might fall under the
  17607. category of a system problem. My shared libraries, ObjectSupportLib and
  17608. AppleScriptLib have had generic icons ever since I installed System 7.5. Has
  17609. anyone else noticed this and isn't it odd?
  17610.  
  17611.  ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
  17612.  
  17613. Too minor for Power Macs -- do the earlier versions of the script editor
  17614. have the "off by n" clicking problem under script editor 1.1 or 1.0?
  17615.  
  17616. Kevin Purcell      Attachmate Corp        (206) 649-6489
  17617. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  17618.  
  17619. ------------------------------
  17620.  
  17621. Date:    Thu, 17 Nov 1994 20:22:45 -0600
  17622. From:    Dennis Whiteman <ultimate@MAIL.ICON.NET>
  17623. Subject: Re: backgrounding an applescript application
  17624.  
  17625. I'm sure others here will offer better solutions, but I'm running certain
  17626. applets overnight using QuicKeys' timer function.
  17627.  
  17628. For instance, I have a Check Mail applet that I run at the same time every
  17629. morning. Rather than having it launch as a startup script, I opted to handle
  17630. it this way because I have three other startup scripts and wanted to give
  17631. this one full attention when it was running since they all seem to get
  17632. launced concurrently.
  17633.  
  17634. Also, I tried Chron when it was version 1.0 and it ran applets fine. It was
  17635. just too  unstable at that time for my uses. I should probably look at one of
  17636. the newer version because I really liked the concept.
  17637.  
  17638. Dennis L. Whiteman
  17639. THE ULTIMATE FREELANCER
  17640. ultimate@mail.icon.net
  17641.  
  17642.  ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
  17643.  
  17644. Here's what I'm trying to do: I have a little script that, if it's two
  17645. minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  17646. database, and then quits it. I'm doing this so that the Today function gets
  17647. recalculated every day and at a time when no one is using it so they don't
  17648. have to sit through the calculation.
  17649. Clearly, this script needs to be open at all times, and I can't trust the
  17650. users of the system not to quit it if they see it in the application menu.
  17651. Hence my question....
  17652.  
  17653. Any help would be appreciated. Thanks.
  17654.  
  17655. Aaron Brockett
  17656. abrocke1@cc.swarthmore.edu
  17657.  
  17658. ------------------------------
  17659.  
  17660. End of MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
  17661. ***************************************************
  17662.  
  17663.  
  17664.            ************************************************
  17665.              Text attachment found and added as enclosure
  17666.            ************************************************
  17667.  
  17668.  
  17669. --Boundary (ID M3oYQ5jm66kQ1zkXsNv/aQ)--
  17670. =========================================================================
  17671. Date:         Thu, 17 Nov 1994 04:02:57 -0500
  17672. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  17673. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  17674. From:         system@MAIL1.WYETH.COM
  17675. Subject:      Service Message
  17676.  
  17677. --Boundary (ID nRextD6cGC9c36vBjbSvsg)
  17678. Content-type: TEXT/REPORT
  17679.  
  17680. Report on your message to: /U=Unknown/@mr.wyeth.com
  17681. Reason: Unable to transfer; message formatting problem (1)
  17682. Diagnostic: Maximum time expired (5)
  17683. Supplementary information: Message was undeliverable to Microsoft mail.  Error
  17684.  confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  17685. Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
  17686.  
  17687. --Boundary (ID nRextD6cGC9c36vBjbSvsg)
  17688. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  17689.  
  17690. From: Systems, Macintosh S
  17691. Date: Wed, Nov 16, 1994 11:00 PM
  17692. Subject: MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
  17693. To: Sabatucci, Joe
  17694. File(s): Attach.Txt1
  17695.  
  17696. Regarding Message ID : 61400071114991/585237@MAIL1
  17697. From: NAME: Macintosh Scripting Systems
  17698. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  17699. Author: NAME: Automatic digest processor
  17700. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::LISTSERV>
  17701. To: NAME: Recipients of MACSCRPT digests
  17702. <MAIL1::PMDF::DARTCMS1.DARTMOUTH.EDU::MACSCRPT>
  17703.  
  17704. Date      : 16-NOV-1994 23:00:23.00
  17705. There are 39 messages totalling 1233 lines in this issue.
  17706.  
  17707. Topics of the day:
  17708.  
  17709.   1. "Get Terminology" event question
  17710.   2. Sending raw events to FaceSpan (3)
  17711.   3. Listserv scripts on the Mac
  17712.   4. MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994 (2)
  17713.   5. Re(2): Listserv scripts on the Mac
  17714.   6. Newbie on Timer function
  17715.   7. Re (2)
  17716.   8. Changing Folder and File Visibility (2)
  17717.   9. Key presses and timing query (3)
  17718.  10. unsub (3)
  17719.  11. FMP Timeout Problem! (3)
  17720.  12. Sending raw events to Fa
  17721.  13. Script Editor WorldScript bug fix? (2)
  17722.  14. RE- FMP & Picture fields
  17723.  15. HyperCard + Excel Questions
  17724.  16. backgrounding an applescript application (3)
  17725.  17. Stack overflow error
  17726.  18. NDN: Newbie on Timer function
  17727.  19. AOCE listservs (was Re: Listserv scripts on the Mac)
  17728.  20. Frontier: dialog.runModeless question
  17729.  21. RE-FMP Creating a new recor
  17730.  22. Re(2): FMP Timeout Problem!
  17731.  23. AAAAARRRGGGHHHH
  17732.  24. Listserv scripts on the Mac (Frontier)
  17733.  25. I got this?
  17734.  
  17735. ----------------------------------------------------------------------
  17736.  
  17737. Date:    Wed, 16 Nov 1994 00:11:22 -0800
  17738. From:    Jon Pugh <jonpugh@NETCOM.COM>
  17739. Subject: Re: "Get Terminology" event question
  17740.  
  17741. Brian Hall <mspace@NETCOM.COM> wrote:
  17742. >
  17743. >It used to be that an app had to support the "Get Terminology" event if
  17744. >people were to be able to write:
  17745. >tell application "foo" of machine "bar"
  17746. >  whatever
  17747. >end tell
  17748. >
  17749. >So that SE could syntax check.
  17750.  
  17751. I don't recall this ever being the case.  Most likely you didn't have
  17752. AppleScript installed on the remote machine.  I'm pretty sure that you need
  17753. to have AppleScript there so that it has the system GetTerminology handler
  17754. installed.  I suppose implementing one would work, but it's not the
  17755. simplest solution.  ;)
  17756.  
  17757. >System 7.5 to the rescue:
  17758. >It seems that the version of AppleScript that ships with 7.5 must install a
  17759. >system wide handler for this event, so even if the target app *does not*
  17760. >support the GT event, the extension will suck the resource out the app and
  17761. >pass it back for you. This is mostly a good thing.  The only apps that
  17762. >should mind are those that have dynamic 'aete' - and are there any yet?
  17763.  
  17764. AppleScript has always implemented this scheme.  System 7.5 had no changes
  17765. to AppleScript (well, OK, they recompiled it with a VERY minor Script
  17766. Editor WorldScript bug fix).
  17767.  
  17768. Also, as we were discussing a few days ago, Quark is the only app I know
  17769. which supports dynamic terminologies, but I have yet to see an extension
  17770. which has a dictionary.
  17771.  
  17772. >A side effect of this may be that if the app *is running* on that remote
  17773. >machine, perhaps it would load the resource in that heap? (A guess)
  17774.  
  17775. I believe that you MUST have the remote app running in order to script it.
  17776. Someone needs to be the target of the GetTerminology event.  As I stated
  17777. before, the resource gets loaded, detatched and returned (copied) in the
  17778. GetTerminology reply.  The original should be purgeable, but I don't think
  17779. it gets marked so by AppleScript (this is a good thing for the
  17780. investigative among you to check).
  17781.  
  17782. Jon
  17783.  
  17784. ------------------------------
  17785.  
  17786. Date:    Wed, 16 Nov 1994 00:11:25 -0800
  17787. From:    Jon Pugh <jonpugh@NETCOM.COM>
  17788. Subject: Re: Sending raw events to FaceSpan
  17789.  
  17790. Andrew Johnston <Andrew_Johnston@QMGATE.CORP.APPLE.COM> said:
  17791. >
  17792. >Mark Hadfield <hadfield@resunix.ri.sickkids.on.ca> wrote:
  17793. >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  17794. >> the kind sent from Filemaker ie. an event class and an event id)?
  17795. >
  17796. >> I can send event from Filemaker to an applet created with the script editor
  17797. >> but not to an applet created with FaceSpan.
  17798. >
  17799. >I tried this out, and ran into the same difficulty you had. Events that I
  17800. >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
  17801. >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
  17802. >them on to the script component to let it try to handle them.
  17803. >
  17804. >This struck me as odd, because other events (calls to osaxen and other
  17805. >system-
  17806. >handled events) had to make it. So I tried a 'custom' event with an event
  17807. >class of 'aevt'. Ta da! It worked.
  17808. >
  17809. >That's the secret: use an event class of 'aevt'. You could also try class
  17810. >'syso', but I noticed some wierd behaviour when I tried this out, so I would
  17811. >not advise it.
  17812.  
  17813. I can explain all of this.  FaceSpan registers its events in suites.  So,
  17814. it registers handlers for 'aevt****', 'core****' and 'misc****', among
  17815. others.  Thus, the custom event you were trying to accept wouldn't have a
  17816. handler installed for it.  If you made it fall into one of these suites, it
  17817. would have a handler installed, although there's no guarentee that an app
  17818. will do anything sensible with the event once the handler got it.
  17819.  
  17820. I would have expected that applets would do the same thing that Hypercard
  17821. does, which is to install a '********' handler and just deal with whatever
  17822. comes in.  They don't though.  They register a quit event and install a
  17823. phac handler (that's the AEInstallSpecialHandler with keyPreDispatch which
  17824. equals 'phac' and is not named after Phac Le Tuan).  This phac handler gets
  17825. every event BEFORE it gets sent to its proper handler.  I don't know why
  17826. its done this way, but I'll see if I can find out.  It's probably just a
  17827. dispatch optimization.
  17828.  
  17829. As a final note, the reason why 'syso' events go weird is that the "choose
  17830. folder" osax registers as the 'syso****' handler.  This means that any
  17831. events with class 'syso' and are not handled by an explicit handler, get
  17832. sent there and you get the Choose Folder dialog.  I think this might
  17833. qualify as a bug.  Someone should try finding the "choose folder" event in
  17834. the aete and change the osax name to match that and see if it still works.
  17835. I wonder if there are any other 'syso' events that it handles.  Time to
  17836. snoop the code, I guess.  ;)
  17837.  
  17838. Jon
  17839.  
  17840. ------------------------------
  17841.  
  17842. Date:    Wed, 16 Nov 1994 00:15:34 -0800
  17843. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  17844. Subject: Re: Listserv scripts on the Mac
  17845.  
  17846. >Hello,
  17847. >
  17848. >Someone recently asked on the info-mac list about being able to provide
  17849. >listserv email list management and processing on the Mac.  While I haven't
  17850. >seen anything to do this (at least in shareware), it occurred to me that
  17851. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  17852. >the mac, that this might be possible through some scripting, so I thought I
  17853. >would run this by you and see if anyone has worked on this.
  17854.  
  17855. This is the sort of largish job I would tend to do with Frontier, rather
  17856. than with AppleScript.  [Eudora would be fine as the mailing application.]
  17857. Several of Frontier's capabilities make sense here (your list might be an
  17858. outline in the Frontier database, rather than a separate text file.  The
  17859. outline editor in Frontier is nicely scriptable.
  17860.  
  17861.    --John
  17862.  
  17863. --
  17864. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  17865.  
  17866. ------------------------------
  17867.  
  17868. Date:    Wed, 16 Nov 1994 00:37:09 -0800
  17869. From:    "Alex L. Bangs" <bangs@NETCOM.COM>
  17870. Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
  17871.  
  17872. >From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  17873. >Subject: Accessing the OSA from C
  17874. >
  17875. >OK, I see the book on how to do the OSACompile and all that.
  17876. >
  17877. >How do I check if these traps are available? There doesn't seem to be a
  17878. >Gestalt selector for same, nor can I find a way of checking directly.
  17879.  
  17880. I wondered the same when I first tried to do this... when you try to
  17881. open the component, it will return NULL if there is no component. I don't
  17882. know if this works on System 6, but on System 7, it will return NULL if
  17883. AppleScript is not installed. I don't know if there is a Gestalt call
  17884. for the Component Manager...
  17885.  
  17886. ex.
  17887. gScriptingComponent = OpenDefaultComponent(kOSAComponentType,
  17888.                                              kAppleScriptSubtype);
  17889.  
  17890. To check if AppleScript loaded (later in program) ...
  17891.  
  17892. if (gScriptingComponent != NULL)
  17893. {
  17894. ... do OSAExecute, etc.
  17895. }
  17896.  
  17897. BTW, a good article/sample to use if you are trying to get started with OSA
  17898. calls is in Apple's "develop" magazine, issue 18 (June 1994): "Programming
  17899. for Flexibility: The Open Scripting Architecture" by Paul G. Smith.
  17900.  
  17901. Re: the comment "The Gestalt selector is gestaltAppleEventsAttr ('evnt')",
  17902. that will tell you if AppleEvents are present, but not if AppleScript is...
  17903.  
  17904.  
  17905. -- Alex
  17906.  
  17907. ------------------------------
  17908.  
  17909. Date:    Wed, 16 Nov 1994 04:34:15 -0500
  17910. From:    David Jokinen <ground@INTERLINK.NET>
  17911. Subject: Re(2): Listserv scripts on the Mac
  17912.  
  17913. >Someone recently asked on the info-mac list about being able to provide
  17914. >listserv email list management and processing on the Mac.  While I haven't
  17915. >seen anything to do this (at least in shareware), it occurred to me that
  17916. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  17917. >the mac, that this might be possible through some scripting, so I thought I
  17918. >would run this by you and see if anyone has worked on this.
  17919.  
  17920. I, too, would like to offer a Macintosh-based list server. In fact, I would
  17921. very much like to get involved in creating it.
  17922.  
  17923. I wonder what would happen if we were to try this instead via PowerTalk
  17924. gateways, which will offer the potential for a multi-system listserv
  17925. (probably the world's first!) The concept of messages coming in and going out
  17926. via any combination of carriers is exciting, especially when you consider
  17927. that PowerTalk automatically delivers messages in the best possible format,
  17928. not the least common format.
  17929.  
  17930. To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
  17931. QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
  17932. Internet one, in particular, is a dream. I heartily recommend Mail*Link
  17933. PT/INET from StarNine. Its handling of enclosures is totally transparent,
  17934. plus you get to use all the fancy address catalogs.
  17935.  
  17936. So the plan would be: incoming->PowerShare->AOCE
  17937. daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
  17938. the daemon. PowerRules (now owned by Banyan) was a first attempt in the
  17939. daemon area, but I know something better is possible. Just look at the sheer
  17940. size of "Inside Macintosh: AOCE Application Interfaces." :)
  17941.  
  17942. David Jokinen
  17943. Ground Zero Software
  17944. ground@interlink.net
  17945.  
  17946. ------------------------------
  17947.  
  17948. Date:    Wed, 16 Nov 1994 10:44:50 +0100
  17949. From:    Chris Remie <chris@MEDIAMATIC.NL>
  17950. Subject: Newbie on Timer function
  17951.  
  17952. Hi,
  17953. I'm new here so have mercy.
  17954. Is there a way to make a script that performs a task at a certain time every
  17955.  day?
  17956. Thanks,
  17957. Chris Remie
  17958.  
  17959. Mediamatic Magazine
  17960. Mediamatic Interactive Publishing
  17961.  
  17962. postbus 17490
  17963. 1001 JL  Amsterdam
  17964. the Netherlands
  17965.  
  17966. vox: +31 - 20 626 6262
  17967. fax: +31 - 20 626 3793
  17968. www: http://mmol.mediamatic.nl
  17969.  
  17970. ------------------------------
  17971.  
  17972. Date:    Wed, 16 Nov 1994 08:36:40 -0500
  17973. From:    Gary Morrison <MORRISG@ORG.BITNET>
  17974. Subject: Re
  17975.  
  17976. unsubcribe
  17977.  
  17978. ------------------------------
  17979.  
  17980. Date:    Wed, 16 Nov 1994 08:43:23 -0500
  17981. From:    "Michael D. Doub" <doub@DG-RTP.DG.COM>
  17982. Subject: Changing Folder and File Visibility
  17983.  
  17984. Is anyone aware of a osaxen that would allow you to control the visability
  17985. of a folder or a file from AppleScript?  A scriptable version of the
  17986. BlindFold application would do the trick too.  Does it exist?
  17987.  
  17988. Thanks
  17989.   Mike
  17990.  
  17991. ------------------------------
  17992.  
  17993. Date:    Wed, 16 Nov 1994 14:23:23 +0000
  17994. From:    David Davies <d.a.davies@BHAM.AC.UK>
  17995. Subject: Key presses and timing query
  17996.  
  17997. Sorry to ask such a basic question but can anyone tell me how to get back
  17998. which key a user has pressed from within Applescript?
  17999.  
  18000. While I'm at it, does anyone know of a more accurate way of timing an
  18001. operation in Applescript other than using the time to the nearest second?
  18002. Tenths of a second would be good enough.
  18003.  
  18004. Thanks,
  18005.  
  18006. David Davies
  18007.  
  18008. ------------------------------
  18009.  
  18010. Date:    Wed, 16 Nov 1994 08:55:45 -0600
  18011. From:    Fred Terry <pfterry@LKS.CSI.COM>
  18012. Subject: Re: Re
  18013.  
  18014. >unsubcribe
  18015.  
  18016. Send your request to listserv@dartmouth.edu in the form
  18017.  
  18018. signoff macscrpt
  18019.  
  18020. ------------------------------
  18021.  
  18022. Date:    Wed, 16 Nov 1994 12:26:21 AST4ADT
  18023. From:    LEBLANR@UMONCTON.CA
  18024. Subject: unsub
  18025.  
  18026. unsubscribe Bob LeBlanc
  18027.  
  18028. ------------------------------
  18029.  
  18030. Date:    Wed, 16 Nov 1994 11:06:23 -0500
  18031. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  18032. Subject: Re: Sending raw events to FaceSpan
  18033.  
  18034. Mark Asked:
  18035. >>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  18036. >>the kind sent from Filemaker ie. an event class and an event id)?
  18037. >>
  18038. >>I can send event from Filemaker to an applet created with the script editor
  18039. >>but not to an applet created with FaceSpan.
  18040. >>
  18041. >>Any help our suggestions would be most appreciated.
  18042. >>Thanks in advance.
  18043. >
  18044. John responded:
  18045. >well, you have the seeds to a work-around!
  18046. >
  18047. >Just make an applet in AppleScript to receive these events, and then send
  18048. >them to the FaceSpan app via "tell" statements... that should work.
  18049. >
  18050. >- john
  18051. >
  18052. >-----------------------------------------
  18053. >js12@gte.com             GTE Laboratories
  18054. >John Schettino                Waltham, MA
  18055.  
  18056. Lets call a club a club - its not a work-around it a kludge!!  Funny enough
  18057. I hadn't thought of doing that.  Not a bad suggestion but not an ideal
  18058. solution for me.  I'm designing applets that are distrubuted to multiple
  18059. users in my institution.  If I told them 'well here filemaker for the
  18060. database, and here's an facespan applet to do functions that filemaker
  18061. can't do, oh and ya, here's another application...'.
  18062. I REALLY would like to avoid a scenario like that...
  18063.  
  18064. Mark Hadfield
  18065. hadfield@sickkids.on.ca
  18066. The Hospital For Sick Children
  18067.  
  18068. ------------------------------
  18069.  
  18070. Date:    Wed, 16 Nov 1994 10:08:49 -0600
  18071. From:    Fred Terry <pfterry@LKS.CSI.COM>
  18072. Subject: Re: unsub
  18073.  
  18074. >unsubscribe Bob LeBlanc
  18075.  
  18076. Please send your request to listserv@dartmouth.edu in the form
  18077.  
  18078. signoff macscrpt
  18079.  
  18080. ------------------------------
  18081.  
  18082. Date:    Wed, 16 Nov 1994 11:30:44 -0500
  18083. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  18084. Subject: Re: FMP Timeout Problem!
  18085.  
  18086. >IUm working on a fairly large & involved AppleScript that manipulates
  18087. >data in several FileMaker Pro files. It all seems to work really well, exce=
  18088. pt
  18089. >for one niggling--and highly frustrating--problem:
  18090. >
  18091. >When I try to obtain the number of records in the current found set,
  18092. >the event never resolves; instead, after a minute or so, I get an RAppleEve=
  18093. nt
  18094. >timed outS dialog box.
  18095. >
  18096. >The problem line is:
  18097. >
  18098. >        set rCount to (Count of Layout 1 of Window 1 Class Record)--times
  18099. >out
  18100. >
  18101. >IUve tried it with long time outs and it just doesnUt do any good.
  18102. >
  18103. >
  18104. >Please help!!!
  18105. >
  18106. >
  18107. >FYI: I had the same problem when I ran a FileMaker Script from my
  18108. >AppleScript that did a Find All. When I replaced that call with a simple
  18109. >AppleScript Tshow every record,U it no longer timed out.
  18110.  
  18111. The problem is not your 'set count to' command its the command that comes
  18112. before it. Let me guess- the line before it is triggering a Filemaker
  18113. script.  This is the crux of the problem:  when you trigger a filemaker
  18114. script, FM tells applescript that it is complete WHEN THE FM SCRIPT IS
  18115. TRIGGERED NOT WHEN THE FM SCRIPT IS COMPLETE.  Applescript assumes that FM
  18116. is done and issues the next event (your count records command).  FM  misses
  18117. the command and thus never responds back to it.  Applescript waits
  18118. patiently to hear back and eventually times out.  There are a couple of
  18119. ways around it, one a simple kludge, the other more industrial strength.
  18120.  
  18121. Simple fix:  After every 'do script filemaker script' do a repeat loop long
  18122. enough to ensure the FM script will be finished executing.
  18123.  
  18124. The simple fix is just that simple - but can cause problems if the script
  18125. is running on slower machines or if the type of FM script that is called
  18126. can have varying length of runs (ie. most take 3 seconds but one big one
  18127. takes 50 seconds - you would have to set the repeat loop to last 50 seconds
  18128. even though most are only 3 seconds...).
  18129.  
  18130. Industrial Strength fix:  In every filemaker script that is called from
  18131. applescript add a 'send apple event...' command and the end of the script.
  18132. Set the event class to FMPX. Set the event ID to DONE. Then add the
  18133. following code to your applescript:
  18134.  
  18135. property okContinue : false
  18136.  
  18137. on =ABevent FMPXDONE=BB
  18138.         set okContinue to true
  18139. end =ABevent FMPXDONE=BB
  18140.  
  18141.  
  18142. on foo()
  18143. tell application "Filemaker Pro"
  18144. Do Script FileMaker Script "whatever script you want"
  18145.   if (my canIcontinue()) is false then display dialog "Did not hear from FM
  18146. or FM script took too long to run"
  18147. count class record
  18148. .
  18149. .
  18150. .
  18151. end tell
  18152. end foo
  18153.  
  18154.  
  18155. on canIcontinue()
  18156.         global okContinue
  18157.         local startTime
  18158.         set startTime to current date
  18159.         repeat until ((current date) - (startTime)) > 200
  18160. -- how many seconds to you want to wait to hear back from Filemaker?
  18161.                 if okContinue is true then
  18162.                         set okContinue to false
  18163.                         set startTime to current date -- a small delay to
  18164. ensure FM is ready
  18165.                         repeat until ((current date) - (startTime)) > 1
  18166.                         end repeat
  18167.                         return true
  18168.                 end if
  18169.         end repeat
  18170.         set okContinue to false
  18171.         return false
  18172. end canIcontinue
  18173.  
  18174. Its much more complex but is dynamic: if the FM script only takes 4 seconds
  18175. to run applescript will be issuing the next command 5 or 6 seconds after
  18176. the FM script was called.  If the FM script takes 130 seconds to run
  18177. applescript will be issuing the next command 131 or 132 seconds later.
  18178.  
  18179.  
  18180.  
  18181. Mark Hadfield
  18182. hadfield@sickkids.on.ca
  18183. The Hospital For Sick Children
  18184.  
  18185. ------------------------------
  18186.  
  18187. Date:    Wed, 16 Nov 1994 11:41:12 -0500
  18188. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  18189. Subject: Re: Sending raw events to Fa
  18190.  
  18191. >>I wrote:
  18192. >> Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  18193. >> the kind sent from Filemaker ie. an event class and an event id)?
  18194. >
  18195. >> I can send event from Filemaker to an applet created with the script editor
  18196. >> but not to an applet created with FaceSpan.
  18197. >
  18198. >I tried this out, and ran into the same difficulty you had. Events that I
  18199. >composed with the double-pointy-thing notation (eg: <<event clasidid>>)
  18200. >didn't seem to get handled by FaceSpan. Not only that, but it wasn't passing
  18201. >them on to the script component to let it try to handle them.
  18202. >
  18203. >This struck me as odd, because other events (calls to osaxen and other
  18204. >system-
  18205. >handled events) had to make it. So I tried a 'custom' event with an event
  18206. >class of 'aevt'. Ta da! It worked.
  18207. >
  18208. >That's the secret: use an event class of 'aevt'. You could also try class
  18209. >'syso', but I noticed some wierd behaviour when I tried this out, so I would
  18210. >not advise it.
  18211. >
  18212. >Hope that helps (and thanks for asking cool questions),
  18213. >  Andrew
  18214. >----------------------------------------------------------------------
  18215. >Andrew T. Johnston  |
  18216. >Apple Canada, Inc.  |  Who else would claim these opinions as his own?
  18217. >atjohnst@apple.com  |
  18218.  
  18219.  
  18220.  
  18221. Whoopee!! It worked!!  You are a god!  No more faceless applets for my users!!!
  18222.  
  18223. Mark Hadfield
  18224. hadfield@sickkids.on.ca
  18225. The Hospital For Sick Children
  18226.  
  18227. ------------------------------
  18228.  
  18229. Date:    Wed, 16 Nov 1994 12:03:23 -0500
  18230. From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  18231. Subject: Re: Changing Folder and File Visibility
  18232.  
  18233. I have C code that does this; if one doesn't exist I could probably write an
  18234. osax if I knew how. :D
  18235.  
  18236. _Deirdre
  18237.  
  18238. Michael Doub asks:
  18239. > Is anyone aware of a osaxen that would allow you to
  18240. >  control the visability of a folder or a file from
  18241. >  AppleScript?  A scriptable version of the BlindFold
  18242. >  application would do the trick too.  Does it exist?
  18243.  
  18244. ------------------------------
  18245.  
  18246. Date:    Wed, 16 Nov 1994 09:38:23 -0800
  18247. From:    Kevin Purcell <kevinpu@ATM.COM>
  18248. Subject: Script Editor WorldScript bug fix?
  18249.  
  18250. >AppleScript has always implemented this scheme.  System 7.5 had no changes
  18251. >to AppleScript (well, OK, they recompiled it with a VERY minor Script
  18252. >Editor WorldScript bug fix).
  18253.  
  18254. Too minor for Power Macs -- do the earlier versions of the script editor
  18255. have the "off by n" clicking problem under script editor 1.1 or 1.0?
  18256.  
  18257. Kevin Purcell      Attachmate Corp        (206) 649-6489
  18258. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  18259.  
  18260. ------------------------------
  18261.  
  18262. Date:    Wed, 16 Nov 1994 10:11:34 U
  18263. From:    Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  18264. Subject: RE- FMP & Picture fields
  18265.  
  18266.         Reply to:   RE: FMP & Picture fields
  18267. tell application "FileMaker Pro"
  18268.      copy cellValue of cell "Picture" to thePicture
  18269. end tell
  18270.  
  18271. works fine i.e. the picture data is tored in the variable thePicture.  You
  18272. can verify this by setting this data back into the picture field in a new
  18273. record within your database.   What exactly do you want to do with the data
  18274. in thePicture after you have copied it.
  18275.  
  18276. ------------------------------
  18277.  
  18278. Date:    Wed, 16 Nov 1994 10:24:16 -0800
  18279. From:    "Alex L. Bangs" <bangs@NETCOM.COM>
  18280. Subject: HyperCard + Excel Questions
  18281.  
  18282. A few questions:
  18283.  
  18284. (1) I've been experimenting with doing AppleScript in HyperCard. The
  18285. on-line documentation is amazingly vague about transfering data back and
  18286. forth, and provides no examples. By looking at the mail merge example
  18287. stack, I saw that they are getting HyperCard data via using HyperTalk
  18288. functions called from AppleScript. I also know I can access fields
  18289. directly.
  18290.  * Question: is there a way to get direct access to global HyperTalk variables?
  18291.     I can access them when running a script from the script editor and using
  18292.     an evaluate expression, but when I try to do this inside HyperCard as
  18293.     an AppleScript script, it doesn't work.
  18294.  
  18295.  * Question: is it possible to using HyperTalk "chunking" expressions from
  18296.     AppleScript? I think the answer is know but would appreciate enlightenment.
  18297.     I'm talking about things like 'the first item of line 1 of bkgnd field "x"'
  18298.  
  18299. (2) What my script does is take a field or variable and turn it into a 2D
  18300.     list which can then be dumped into Excel via a named range of cells.
  18301.     Here's the one line I tell Excel:
  18302.      set value of Range myRange to myArray
  18303.     The problem is it executes *really* slowly, like 1 cell per second on
  18304.     a PB 170. Any idea what's going on here.
  18305.  
  18306. (3) If you'd like to take pot-shots at my script, here it is:
  18307.  
  18308. -- this script accesses all HyperCard data via a set of
  18309. -- background HyperTalk functions -- getData*()
  18310.  
  18311. on mouseUp
  18312.         set saveDelim to AppleScript's text item delimiters
  18313.         set AppleScript's text item delimiters to {","}
  18314.         set nRows to getDataNRows()
  18315.         set nCols to getDataNCols()
  18316.         set myArray to {}
  18317.         repeat with r from 1 to nRows
  18318.                 set rowItems to text items of getDataNthRow(r)
  18319.                 set rowList to {}
  18320.                 repeat with c from 1 to nCols
  18321.                         set rowList to rowList & {item c of rowItems as number}
  18322.                 end repeat
  18323.                 set myArray to myArray & {rowList}
  18324.         end repeat
  18325.         set AppleScript's text item delimiters to saveDelim
  18326.         set myRange to getDataRange()
  18327.  
  18328.         tell application "Excel"
  18329.                 activate
  18330.                 -- the following line runs painfully slowly!
  18331.                 set value of Range myRange to myArray
  18332.         end tell
  18333. end mouseUp
  18334.  
  18335. Thanks!
  18336. Alex
  18337.  
  18338. ------------------------------
  18339.  
  18340. Date:    Wed, 16 Nov 1994 13:35:10 -0500
  18341. From:    Aaron Brockett <abrocke1@CC.SWARTHMORE.EDU>
  18342. Subject: backgrounding an applescript application
  18343.  
  18344. I want to know how to make an applescript saved as a stay open application
  18345. stay in the background (as in, not appearing in the application menu) at
  18346. all times.
  18347.  
  18348. Here's what I'm trying to do: I have a little script that, if it's two
  18349. minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  18350. database, and then quits it. I'm doing this so that the Today function gets
  18351. recalculated every day and at a time when no one is using it so they don't
  18352. have to sit through the calculation.
  18353. Clearly, this script needs to be open at all times, and I can't trust the
  18354. users of the system not to quit it if they see it in the application menu.
  18355. Hence my question.
  18356.  
  18357. I tried a horrendous hack which, not surprisingly, didn't work: I opened
  18358. the size resource with ResEdit and checked the "Always Background" bit.
  18359. When launched, the script did in fact go into the background, but it also
  18360. crashed my computer when I checked the application menu.
  18361.  
  18362. If anyone had other ideas about how to do this, that would be appreciated
  18363. too. I tried to use Cron to do this, but couldn't for the life of me get it
  18364. to open a file. I could beep with it, flash dialogs, open a _program_,
  18365. etcetera, but I absolutely couldn't get it to open a file.
  18366.  
  18367. Any help would be appreciated. Thanks.
  18368.  
  18369. Aaron Brockett
  18370. abrocke1@cc.swarthmore.edu
  18371.  
  18372. ------------------------------
  18373.  
  18374. Date:    Wed, 16 Nov 1994 10:53:43 -0800
  18375. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  18376. Subject: Re: MACSCRPT Digest - 13 Nov 1994 to 14 Nov 1994
  18377.  
  18378. >>From:    Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  18379. >>Subject: Accessing the OSA from C
  18380. >>
  18381. >>OK, I see the book on how to do the OSACompile and all that.
  18382. >>
  18383. >>How do I check if these traps are available? There doesn't seem to be a
  18384. >>Gestalt selector for same, nor can I find a way of checking directly.
  18385. >
  18386. >I wondered the same when I first tried to do this... when you try to
  18387. >open the component, it will return NULL if there is no component. I don't
  18388. >know if this works on System 6, but on System 7, it will return NULL if
  18389. >AppleScript is not installed. I don't know if there is a Gestalt call
  18390. >for the Component Manager...
  18391. >
  18392.  
  18393. The gestalt selector which lets you know whether the Component Manager is
  18394. present is gestaltComponentMgr ('cpnt'), which returns the version number
  18395. of the Component Manager (4 on my 8100 running System 7.5, your mileage may
  18396. vary).
  18397.  
  18398. If Component Manager is not available, the selector is not defined, and
  18399. Gestalt will return an error.
  18400.  
  18401. The Component Manager is available under System 6.x and System 7.0.x if and
  18402. only if QuickTime is installed*...it became part of the base System in
  18403. System 7.1
  18404.  
  18405.   --John
  18406.  
  18407. * Or a hypothetical something else which installs Component Manager in
  18408. those old Systems.  Sys 7.0 was so long ago--did AppleScript install
  18409. Component Manager, or refuse to run without it, or ...?
  18410.  
  18411. --
  18412. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  18413.  
  18414. ------------------------------
  18415.  
  18416. Date:    Wed, 16 Nov 1994 12:23:41 CST
  18417. From:    Joshua Buysse <BUYSSE@MAIN.MNDLY.UMN.EDU>
  18418. Subject: Stack overflow error
  18419.  
  18420. A fairly large script that I've been working on is consistently
  18421. giving me "Stack Overflow" errors.
  18422.  
  18423. What can I do to get this to work inside AppleScript?  Note: the
  18424. error is occuring during a tell statement to the Finder.
  18425.  
  18426. Besides that, is there any way that my script can receive
  18427. notification when a volume is mounted without doing an idle loop to
  18428. watch for it?
  18429.  
  18430. I'm using System 7.5, with the AppleScript Scripter's kit installed.
  18431.  
  18432. Thanks,
  18433. Josh Buysse
  18434.  
  18435. CAFE Mac Client designer
  18436. University of Minnesota AIS
  18437.  
  18438. ------------------------------
  18439.  
  18440. Date:    Wed, 16 Nov 1994 14:32:28 -0500
  18441. From:    Jonathan Donald <jeddak@PANIX.COM>
  18442. Subject: Re: FMP Timeout Problem!
  18443.  
  18444.  
  18445. Thanks for your enlightening explanation regarding FileMaker timing out on
  18446. script calls.
  18447.  
  18448. IUve begun implementing the industrial-strength fix you described, but IUve
  18449. run into one problem. The apple event handler you specified doesnUt compile:
  18450.  
  18451.                 on =ABevent FMPXDONE=BB
  18452.                         set okContinue to true
  18453.                 end =ABevent FMPXDONE=BB
  18454.  
  18455. I get a dialog box that says: RExpected function name, command name or
  18456. function
  18457. name but found R=S.
  18458.  
  18459. Also, an observation (please tell me if IUm wrong):
  18460.  
  18461. Your technique of having the FileMaker Pro script send an FMPX/DONE event
  18462. assumes that the called script does not call subscripts that are also called
  18463. by the AppleScript.
  18464.  
  18465. For example, letUs say I want to call FileMaker script x, and have x confirm
  18466. its
  18467. completion by sending the DONE event. Given this scenario, I canUt call
  18468. script
  18469. x
  18470. from within script y and then call script y from my AppleScript, because the
  18471. DONE event would be sent as soon as script x is completed, not after y is
  18472. completed.
  18473.  
  18474.  
  18475.  
  18476. -jd
  18477.  
  18478. ------------------------------
  18479.  
  18480. Date:    Wed, 16 Nov 1994 13:58:11 U
  18481. From:    Dennis Whiteman <ultimate@MAIL.ICON.NET>
  18482. Subject: Re: Key presses and timing query
  18483.  
  18484. > Sorry to ask such a basic question but can
  18485. > anyone tell me how to get back which key a user
  18486. > has pressed from within Applescript?
  18487.  
  18488. Jon's Commands 1.2 has the following event:
  18489.  
  18490. keys pressed: Get the keys that are currently pressed.
  18491.         keys pressed
  18492.         Result:   string  -- A list of key names.
  18493.  
  18494. Hope this helps.
  18495.  
  18496. Dennis L. Whiteman
  18497. THE ULTIMATE FREELANCER
  18498. ultimate@mail.icon.net
  18499.  
  18500. ------------------------------
  18501.  
  18502. Date:    Wed, 16 Nov 1994 12:09:04 GMT
  18503. From:    Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
  18504. Subject: NDN: Newbie on Timer function
  18505.  
  18506. Sorry. Your message could not be delivered:
  18507.  
  18508. Message contained no valid addresses.
  18509.  
  18510. ------------------------------
  18511.  
  18512. Date:    Thu, 17 Nov 1994 09:03:00 +1300
  18513. From:    "Lawrence D'Oliveiro, Waikato University, Hamilton,
  18514.          NZ" <LDO@WAIKATO.AC.NZ>
  18515. Subject: Re: AOCE listservs (was Re: Listserv scripts on the Mac)
  18516.  
  18517. David Jokinen <ground@INTERLINK.NET> writes:
  18518.  
  18519. >I wonder what would happen if we were to try this instead via PowerTalk
  18520. >gateways, which will offer the potential for a multi-system listserv
  18521. >(probably the world's first!) The concept of messages coming in and going out
  18522. >via any combination of carriers is exciting, especially when you consider
  18523. >that PowerTalk automatically delivers messages in the best possible format,
  18524. >not the least common format.
  18525. >
  18526. >To my knowledge, gateways currently exist for: Internet, CompuServe, MSMail,
  18527. >QuickMail, PowerShare, Direct AppleTalk, Direct Dialup, fax and pagers. The
  18528. >Internet one, in particular, is a dream. I heartily recommend Mail*Link
  18529. >PT/INET from StarNine. Its handling of enclosures is totally transparent,
  18530. >plus you get to use all the fancy address catalogs.
  18531. >
  18532. >So the plan would be: incoming->PowerShare->AOCE
  18533. >daemon->PowerShare->outgoing, with either Frontier or AppleScript controlling
  18534. >the daemon. PowerRules (now owned by Banyan) was a first attempt in the
  18535. >daemon area, but I know something better is possible. Just look at the sheer
  18536. >size of "Inside Macintosh: AOCE Application Interfaces." :)
  18537.  
  18538. Before you get too enthused, bear in mind that the current public AOCE APIs
  18539. aren't really up to the task. PowerRules was done using APIs which were not
  18540. made generally public, because they were not guaranteed to be stable enough
  18541. for public use.
  18542.  
  18543. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  18544. Computer Services Dept                     fax: +64-7-838-4066
  18545. University of Waikato            electric mail: ldo@waikato.ac.nz
  18546. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  18547.  
  18548. ------------------------------
  18549.  
  18550. Date:    Wed, 16 Nov 1994 12:27:45 -0800
  18551. From:    David Lewis <lewis@NETCOM.COM>
  18552. Subject: Re: Frontier: dialog.runModeless question
  18553.  
  18554. >>The problem is that dialog.run is kind enough to center the
  18555. >>dialog in the screen when it draws it, but dialog.runModeless puts it up at
  18556. >>0,0. What now, John? By the way, I'm on a Duo, so the screen bounds change
  18557. >>depending on whether it's docked or undocked. Thanks.
  18558. >
  18559. >Hi, David...
  18560. >   In probing here, it appears that you can adjust the rectangle in the
  18561. >DLOG resource, and have an effect on where the dialog will be displayed.
  18562. >If I put the dialog "fairly far to the right and down", dialog.runModeless
  18563. >places it a little up and left from where dialog.run does.  If I build the
  18564. >DLOG resource so that its top left is 0,0, that's where dialog.runModeless
  18565. >places it.
  18566. >
  18567. Yeah, I can solve it in a couple of ways, all of them sub-optimal. I can
  18568. have one custom dialog file which places it off-center on one of the
  18569. screens. I can have two custom dialog files, and use the kludge of
  18570. switching between them depending on the existance of a disk I know to be
  18571. present only in the dock. (I've never figured out a gestalt selector for
  18572. the presence of a dock, but I haven't looked at the latest version of the
  18573. list.) Or I could execute this as part of the pre-display case in the
  18574. callback routine:
  18575.  
  18576.     KeyQuencer.doScript ("WaitWindow dialog open\rMoveWindow center")
  18577.  
  18578. which is visually dippy since the dialog is displayed in the wrong place
  18579. for a split second. I guess that any of them are good enough for my own
  18580. use, and I'm glad you flagged it for Doug. If there's a wish list for 4.0
  18581. still, it would be nice to have the same background timing mechanism for
  18582. dialog.run that exists for dialog.runModeless. Thanks.
  18583.  
  18584.     David
  18585.  
  18586. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  18587.  
  18588. ------------------------------
  18589.  
  18590. Date:    Wed, 16 Nov 1994 13:20:20 -0800
  18591. From:    "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  18592. Subject: Re: Sending raw events to FaceSpan
  18593.  
  18594. >Mark Asked:
  18595. >>>Does anyone know if FaceSpan can receive raw apple events (by raw I mean
  18596. >>>the kind sent from Filemaker ie. an event class and an event id)?
  18597. >>>
  18598. >>>I can send event from Filemaker to an applet created with the script editor
  18599. >>>but not to an applet created with FaceSpan.
  18600. >>>
  18601. >>>Any help our suggestions would be most appreciated.
  18602. >>>Thanks in advance.
  18603. >>
  18604. >John responded:
  18605. >>well, you have the seeds to a work-around!
  18606. >>
  18607. >>Just make an applet in AppleScript to receive these events, and then send
  18608. >>them to the FaceSpan app via "tell" statements... that should work.
  18609. >>
  18610. >>- john
  18611. >>
  18612. >>-----------------------------------------
  18613. >>js12@gte.com             GTE Laboratories
  18614. >>John Schettino                Waltham, MA
  18615. >
  18616. >Lets call a club a club - its not a work-around it a kludge!!  Funny enough
  18617. >I hadn't thought of doing that.  Not a bad suggestion but not an ideal
  18618. >solution for me.  I'm designing applets that are distrubuted to multiple
  18619. >users in my institution.  If I told them 'well here filemaker for the
  18620. >database, and here's an facespan applet to do functions that filemaker
  18621. >can't do, oh and ya, here's another application...'.
  18622. >I REALLY would like to avoid a scenario like that...
  18623. >
  18624.  
  18625. It also won't help, unless the kludge applet also translates the event into
  18626. one which you can receive in a FaceSpan applet.  But...FileMaker could send
  18627. that directly, without the kludge.  Basically, a dead end.
  18628.  
  18629.    --John
  18630.  
  18631. --
  18632. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  18633.  
  18634. ------------------------------
  18635.  
  18636. Date:    Wed, 16 Nov 1994 13:23:30 U
  18637. From:    Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  18638. Subject: RE-FMP Creating a new recor
  18639.  
  18640.                        Subject:                               Time:13:20
  18641.   OFFICE MEMO          RE:FMP Creating a new record with      Date:11/16/94
  18642. If you want to fill out all the fields in the new record then you can set the
  18643. data to layout 0 (layout 0 is a conceptual layout consisting of all the
  18644. fields defined in the database, the fields are ordered according to their
  18645. creation order).  On layouts other than layout 0 the data will also be set to
  18646. the fields according to their creation order however data will only be set
  18647. into the fields that actually exist on that layout.
  18648.  
  18649. Layout 0 has all fields in creation order.
  18650. Layout nth Layout has the fields that exist on that layout in creation order.
  18651.  
  18652. Stephen
  18653.  
  18654. ------------------------------
  18655.  
  18656. Date:    Wed, 16 Nov 1994 16:31:59 -0500
  18657. From:    David Jokinen <ground@INTERLINK.NET>
  18658. Subject: Re(2): FMP Timeout Problem!
  18659.  
  18660. Much thanks to Mark Hadfield for finally clearing up this common FileMaker
  18661. script problem. Now, could someone please clarify the meaning of the
  18662. following construct he used?
  18663.  
  18664. > on =ABevent FMPXDONE=BB
  18665. >         set okContinue to true
  18666. > end =ABevent FMPXDONE=BB
  18667.  
  18668. I presume it's some kind of AppleEvent handler, but I don't recognize the
  18669. syntax, nor could I find anything like it in the AppleScript Language Guide.
  18670.  
  18671. David Jokinen
  18672. Ground Zero Software
  18673. ground@interlink.net
  18674.  
  18675. ------------------------------
  18676.  
  18677. Date:    Wed, 16 Nov 1994 17:18:21 -0500
  18678. From:    Jason Komaromi - GEOG/W94 <jkomarom@ACS.RYERSON.CA>
  18679. Subject: Re: unsub
  18680.  
  18681. Unsubscribe Jason Komaromi
  18682.  
  18683. ------------------------------
  18684.  
  18685. Date:    Wed, 16 Nov 1994 16:35:19 -0600
  18686. From:    Fred Terry <pfterry@LKS.CSI.COM>
  18687. Subject: AAAAARRRGGGHHHH
  18688.  
  18689. Save this mail message. It includes all the e-mail addresses you need when
  18690. dealing with the Mac Scripting mailing list.
  18691.  
  18692. *** To Unsubscribe from this list:
  18693.  
  18694. Send to: LISTSERV@dartmouth.edu
  18695. Subject: unsubscribe
  18696. Message: signoff macscrpt
  18697.  
  18698.  
  18699. *** To subscribe to this list:
  18700.  
  18701. Send to: LISTSERV@dartmouth.edu
  18702. Subject: subscribe
  18703. Message: subscribe macscrpt <your full name here>
  18704.  
  18705.  
  18706. *** To receive the mail as daily digest:
  18707.  
  18708. Send to: LISTSERV@dartmouth.edu
  18709. Subject: digest
  18710. Message: set macscrpt digest
  18711.  
  18712.  
  18713. *** To get other info on using this automated system:
  18714.  
  18715. Send to: LISTSERV@dartmouth.edu
  18716. Subject: help
  18717. Message: help
  18718.  
  18719.  
  18720. *** To ask the human moderators a question:
  18721.  
  18722. Send to: MacScripting-Request@dartmouth.edu
  18723.  
  18724.  
  18725. *** To send a message to the mailing list:
  18726.  
  18727. Send to: MacScripting@dartmouth.edu
  18728.  
  18729.  
  18730. Thanks.
  18731.  
  18732. -The Moderators (a very offcial way of saying "Fred & Andy")
  18733.  
  18734. ------------------------------
  18735.  
  18736. Date:    Wed, 16 Nov 1994 17:49:03 -0500
  18737. From:    Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  18738. Subject: Re: FMP Timeout Problem!
  18739.  
  18740. >Mark:
  18741. >
  18742. >Thanks for your enlightening explanation regarding FileMaker timing out on
  18743. >script calls.
  18744. >
  18745. >IUve begun implementing the industrial-strength fix you described, but IUve
  18746. >run into one problem. The apple event handler you specified doesnUt compile=
  18747. :
  18748. >
  18749. >                on =3DABevent FMPXDONE=3DBB
  18750. >                        set okContinue to true
  18751. >                end =3DABevent FMPXDONE=3DBB
  18752. >
  18753. >I get a dialog box that says: RExpected function name, command name or
  18754. >function
  18755. >name but found R=3DS.
  18756. >
  18757. >Also, an observation (please tell me if IUm wrong):
  18758. >
  18759. >Your technique of having the FileMaker Pro script send an FMPX/DONE event
  18760. >assumes that the called script does not call subscripts that are also calle=
  18761. d
  18762. >by the AppleScript.
  18763. >
  18764. >For example, letUs say I want to call FileMaker script x, and have x confir=
  18765. m
  18766. >its
  18767. >completion by sending the DONE event. Given this scenario, I canUt call
  18768. >script
  18769. >x
  18770. >from within script y and then call script y from my AppleScript, because th=
  18771. e
  18772. >DONE event would be sent as soon as script x is completed, not after y is
  18773. >completed.
  18774. >
  18775. It doesn't compile because you haven't use the chevron characers.
  18776. To create the chevron characters =AB=BB, use option-\ and shift-option-\.
  18777.  
  18778. As far as your other question I'm not sure what you mean but it sounds like
  18779. it should be able to be done.  Performing subscripts should not change the
  18780. equation.
  18781.  
  18782. Mark Hadfield
  18783. hadfield@sickkids.on.ca
  18784. The Hospital For Sick Children
  18785.  
  18786. ------------------------------
  18787.  
  18788. Date:    Wed, 16 Nov 1994 16:10:10 -0700
  18789. From:    Matthew Frederick <mfred@AMUG.ORG>
  18790. Subject: Re: Key presses and timing query
  18791.  
  18792. >Sorry to ask such a basic question but can anyone tell me how to get back
  18793. >which key a user has pressed from within Applescript?
  18794.  
  18795. Try the Jon's Commands OSAX
  18796. (available via FTP at gaea.kgs.ukans.edu:applescript/)
  18797. It has a command called "keys pressed" that works like a charm.
  18798.  
  18799. >While I'm at it, does anyone know of a more accurate way of timing an
  18800. >operation in Applescript other than using the time to the nearest second?
  18801. >Tenths of a second would be good enough.
  18802.  
  18803. Again, Jon's Commands to the rescue -- it has a command called "the ticks"
  18804. which tells you the current value of the system's tick count, which I
  18805. believe is measured in 60ths of a second.
  18806.  
  18807. Boy those commands are great!
  18808.  
  18809. Matthew
  18810.  
  18811. ----------------------------------------------------------------------------
  18812. --------
  18813. "Believe nothing, no matter where you read it, or who said it -- even if I
  18814. have said
  18815.  it -- unless it agrees with your own reason and your common sense.
  18816. --The Buddha
  18817. ----------------------------------------------------------------------------
  18818. --------
  18819. Matthew Frederick, Phoenix, Arizona, USA  (mfred@amug.org)
  18820.  
  18821. ------------------------------
  18822.  
  18823. Date:    Wed, 16 Nov 1994 17:52:18 +0000
  18824. From:    Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  18825. Subject: Re: backgrounding an applescript application
  18826.  
  18827. Get ScriptHider from the gaea ftp site.
  18828.  
  18829.  
  18830. >I want to know how to make an applescript saved as a stay open application
  18831. >stay in the background (as in, not appearing in the application menu) at
  18832. >all times.
  18833. >
  18834. >Here's what I'm trying to do: I have a little script that, if it's two
  18835. >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  18836. >database, and then quits it. I'm doing this so that the Today function gets
  18837. >recalculated every day and at a time when no one is using it so they don't
  18838. >have to sit through the calculation.
  18839. >Clearly, this script needs to be open at all times, and I can't trust the
  18840. >users of the system not to quit it if they see it in the application menu.
  18841. >Hence my question.
  18842. >
  18843. >I tried a horrendous hack which, not surprisingly, didn't work: I opened
  18844. >the size resource with ResEdit and checked the "Always Background" bit.
  18845. >When launched, the script did in fact go into the background, but it also
  18846. >crashed my computer when I checked the application menu.
  18847. >
  18848. >If anyone had other ideas about how to do this, that would be appreciated
  18849. >too. I tried to use Cron to do this, but couldn't for the life of me get it
  18850. >to open a file. I could beep with it, flash dialogs, open a _program_,
  18851. >etcetera, but I absolutely couldn't get it to open a file.
  18852. >
  18853. >Any help would be appreciated. Thanks.
  18854. >
  18855. >Aaron Brockett
  18856. >abrocke1@cc.swarthmore.edu
  18857.  
  18858. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  18859.          www server: http://josaiah.sewanee.edu/
  18860.         Elomense(MUD): josaiah.sewanee.edu 1999 )
  18861.  
  18862. ------------------------------
  18863.  
  18864. Date:    Wed, 16 Nov 1994 15:55:24 -0800
  18865. From:    Doug Baron <userland@NETCOM.COM>
  18866. Subject: Re: Listserv scripts on the Mac (Frontier)
  18867.  
  18868. >>
  18869. >>My only suggestion would be that you might use Frontier. I know that Dave
  18870. >>Winer has implemented pretty much what you descibe with just Frontier and
  18871. >>Eudara alone. No need for the scriptable finder, osax, or anything else to
  18872. >>get the job done.
  18873. >>
  18874. >>Doug
  18875. >
  18876. >where can i get this? does it work with the frontier runtime.
  18877.  
  18878. I don't know if Dave is sharing his scripts at this point. Probably not,
  18879. would be my guess. I'll ask him. But in any case, it really shouldn't be
  18880. that hard to write. It's mostly a matter of text parsing and maintaining
  18881. tables (lists). I would expect any such system to work fine with Runtime.
  18882.  
  18883. Doug
  18884.  
  18885. ------------------------------
  18886.  
  18887. Date:    Wed, 16 Nov 1994 20:31:05 +0000
  18888. From:    Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  18889. Subject: I got this?
  18890.  
  18891. Any one ever gotten this from the listserv here?:
  18892.  
  18893. Sorry. Your message could not be delivered:
  18894. Message contained no valid addresses.
  18895.  
  18896. The subject line was: NDN: Newbie on Timer function
  18897. and I never sent a message like that. Any ideas?
  18898.  
  18899. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  18900.          www server: http://josaiah.sewanee.edu/          )
  18901.  
  18902. ------------------------------
  18903.  
  18904. Date:    Thu, 17 Nov 1994 20:03:17 -0600
  18905. From:    Dennis Whiteman <ultimate@MAIL.ICON.NET>
  18906. Subject: Re: Script Editor WorldScript bug fix?
  18907.  
  18908. I never noticed the problem under 7.1.2, AppleScript 1.1, and Script Editor
  18909. 1.1 (or 1.1.1, which I used for a week or so), but it was one of the first
  18910. things I noticed after installed System 7.5. I'm now using B&W formatting for
  18911. my scripts, which is less informative but works better.
  18912.  
  18913. I've noticed something else that's strange, though it might fall under the
  18914. category of a system problem. My shared libraries, ObjectSupportLib and
  18915. AppleScriptLib have had generic icons ever since I installed System 7.5. Has
  18916. anyone else noticed this and isn't it odd?
  18917.  
  18918.  ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
  18919.  
  18920. Too minor for Power Macs -- do the earlier versions of the script editor
  18921. have the "off by n" clicking problem under script editor 1.1 or 1.0?
  18922.  
  18923. Kevin Purcell      Attachmate Corp        (206) 649-6489
  18924. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  18925.  
  18926. ------------------------------
  18927.  
  18928. Date:    Thu, 17 Nov 1994 20:22:45 -0600
  18929. From:    Dennis Whiteman <ultimate@MAIL.ICON.NET>
  18930. Subject: Re: backgrounding an applescript application
  18931.  
  18932. I'm sure others here will offer better solutions, but I'm running certain
  18933. applets overnight using QuicKeys' timer function.
  18934.  
  18935. For instance, I have a Check Mail applet that I run at the same time every
  18936. morning. Rather than having it launch as a startup script, I opted to handle
  18937. it this way because I have three other startup scripts and wanted to give
  18938. this one full attention when it was running since they all seem to get
  18939. launced concurrently.
  18940.  
  18941. Also, I tried Chron when it was version 1.0 and it ran applets fine. It was
  18942. just too  unstable at that time for my uses. I should probably look at one of
  18943. the newer version because I really liked the concept.
  18944.  
  18945. Dennis L. Whiteman
  18946. THE ULTIMATE FREELANCER
  18947. ultimate@mail.icon.net
  18948.  
  18949.  ------ From: Macintosh Scripting Systems, Thu, Nov 17, 1994 ------
  18950.  
  18951. Here's what I'm trying to do: I have a little script that, if it's two
  18952. minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  18953. database, and then quits it. I'm doing this so that the Today function gets
  18954. recalculated every day and at a time when no one is using it so they don't
  18955. have to sit through the calculation.
  18956. Clearly, this script needs to be open at all times, and I can't trust the
  18957. users of the system not to quit it if they see it in the application menu.
  18958. Hence my question....
  18959.  
  18960. Any help would be appreciated. Thanks.
  18961.  
  18962. Aaron Brockett
  18963. abrocke1@cc.swarthmore.edu
  18964.  
  18965. ------------------------------
  18966.  
  18967. End of MACSCRPT Digest - 15 Nov 1994 to 16 Nov 1994
  18968. ***************************************************
  18969.  
  18970.  
  18971.            ************************************************
  18972.              Text attachment found and added as enclosure
  18973.            ************************************************
  18974.  
  18975.  
  18976. --Boundary (ID nRextD6cGC9c36vBjbSvsg)--
  18977. =========================================================================
  18978. Date:         Thu, 17 Nov 1994 01:08:06 -0800
  18979. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  18980. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  18981. From:         Kee Nethery <kee@KAGI.COM>
  18982. Subject:      Kee's show and tell
  18983.  
  18984. I've been up to my fingers in scripting and figured I should give a show
  18985. and tell.
  18986.  
  18987. I am automating a shareware collection system which has email that gets
  18988. parsed, paper mail that gets entered and then parsed, email that gets
  18989. generated and sent out, data flying everywhere, and various applications
  18990. that need to interact.
  18991.  
  18992. After getting frustrated with FaceSpan, I started using HyperCard as my
  18993. User Interface builder. So most of my UI is in HyperTalk.
  18994.  
  18995. I have a sequence of tasks that are partly AppleScript and partly HyperTalk
  18996. so I built a set of buttons, each with a HyperTalk or AppleScript task. I
  18997. pass data between these scripts in card fields. Yes I know it's crude but
  18998. it gives me the ability to debug each button separately because the data
  18999. stays in the card fields.
  19000.  
  19001. The thing that ties it all together is a HyperTalk button that sends doit
  19002. to each button in turn. The Hypertalk buttons have an "on doit" script and
  19003. the AppleScript buttons have an "on doit()" script. Each button is in the
  19004. same radio button group so as they get sent the "doit", their radio button
  19005. gets hilited. It's satifying watching the buttons blink.
  19006.  
  19007. I have melded HyperCard, MacAuthorize (credit card verifications), Eudora,
  19008. into one happy process. Soon I'll be adding the Finder to delete files and
  19009. DataScript to talk to a DAL server but that's a bit away. I'll also be
  19010. adding in some networking to store text files on other machines. It's all
  19011. coming together and I realize that without all this cool infrastructure,
  19012. this would not have been possible last year.
  19013.  
  19014. It's probably worth talking about roadkill I've encountered along the way.
  19015.  
  19016. FaceSpan was the first. It was just too painful to get it to do what I
  19017. wanted. Think of it as an abandoned card on the highway. It limps along if
  19018. you baby it but after a while it's faster to hitchhike and catch another
  19019. ride.
  19020.  
  19021. Beyond's PowerRules for the Mac was just not a real AppleScript product.
  19022. The version numbers were really a measure of the entropy in the code. Each
  19023. release was able to execute fewer and fewer of the sample scripts. Think of
  19024. it as true roadkill, a big fat cow that has caused a multi-vehicle pile-up
  19025. (did you see the pictures of the Denver pileup?)
  19026.  
  19027. StarNine's PowerTalk SMTP gateway for PowerTalk is a good product. It did
  19028. what it was supposed to do but without a way to script the PowerTalk In
  19029. Tray, it was of limited value for my project. Think of it as someone who
  19030. was run over trying to prevent the cow from wandering onto the highway. A
  19031. nice entity trying to do the right thing but in the wrong place at the
  19032. wrong time.
  19033.  
  19034. Informed is also a good product but I needed lots of text parsing, the kind
  19035. of thing that HyperTalk seems to have been built for. It competed with
  19036. HyperCard and lost. I also thought of using it for the data collection on
  19037. the client side but the cost for licensing was too high and the size is
  19038. huge. Peter Lewis wrote a small data collection app in pascal that works
  19039. great. Think of it as a mobile home when what I needed was a VW dune buggy.
  19040.  
  19041. DataScript is waiting in the wings. It provides an AppleScript front-end to
  19042. relational databases such as SQL and DAL. I did some tests with it a while
  19043. back and found the software and the company to be great. It's the on-ramp
  19044. ahead that will get me onto the larger highway.
  19045.  
  19046. Butler DAL from Everywhere is a relational database server that runs on the
  19047. Mac. It is low cost but full featured and if I outgrow it as a DAL server,
  19048. I can painlessly replace it with any other bigger faster DAL server (AS400,
  19049. VAX, whatever). It's that suburb with all the infrastructure that is very
  19050. close to a major metropolis.
  19051.  
  19052. That's about it for the present, past, and future cast of my little
  19053. project. There is still lots for me to do but I feel very confident that my
  19054. current tools are up for the job.
  19055.  
  19056. Kee Nethery
  19057.  
  19058. _______________________________________________________________
  19059. Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
  19060. =========================================================================
  19061. Date:         Thu, 17 Nov 1994 01:29:29 -0800
  19062. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19063. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19064. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  19065. Subject:      Re: buyer's remorse
  19066.  
  19067. Barry wrote:
  19068.  
  19069. > which worked with everything I was trying to run on it. (And, yes,
  19070. > another $25 bucks here or there  _is_ a big deal to me. If you want to
  19071. > try being my agent and making my surplus of talents a boon rather than
  19072. > an impediment to my income you're welcome, otherwise keep your opinions
  19073. > on the value of a dollar to yourselves.)
  19074.  
  19075. Pardon me while I snicker.  I work for a multi-million dollar corporation, and
  19076. I still need to be aware of where I throw $25 at.  Don't matter how much money
  19077. you have, you still have to be careful with it, IMHO.  Then again, I'm in
  19078. accounting . . . :)
  19079.  
  19080. > I doodled out late one night. The crashes I get are so random
  19081. > and unreproducible, I don't know where to begin to stabilize
  19082. > things. Anyone seen any compilations of actual real figured
  19083. > out incompatabilities anywhere?
  19084.  
  19085. Mind if I commiserate?
  19086.  
  19087. I'm using an Apple Quadra 630 (another horror story.  Don't get me started).
  19088. The Q630 has ONE SIMM slot.  That means I can install one RAM chip.  It comes
  19089. with 4M on-board, and my company rightly felt that for my needs, 12M would be
  19090. good enough, so they got me an 8M SIMM.  My current system, without some stuff
  19091. I'd like to run, is about 3800K.  When I installed Sys 7.5, it was using
  19092. somewhere on the order of 5.something megs.  That's without Quickdraw GX or
  19093. any of the other bonuses ...
  19094.  
  19095. Oh, and it was a bit slower.  And cludgier.  And more of a disk space hog.
  19096. and my programs were behaving strangely.
  19097.  
  19098. Uhh, thanks.  No thanks.  I got the AppleScript SDK and the Scriptable Finder
  19099. (I spent the $25 about 3-4 months before the upgrade, when we needed the
  19100. Finder *NOW* for a project I was working on), and system 7.1.2P, and I'm a
  19101. happy (relatively) camper.
  19102.  
  19103. We get Sys 7.5 for people at our company who justify why they should have it,
  19104. but we mostly seem to use it for compatibility testing, rather than for
  19105. functionality.
  19106.  
  19107. -roy, who happens to work for the same company that now employs the project
  19108. manager for the Scriptable Finder :)
  19109.  
  19110. -roy
  19111. =========================================================================
  19112. Date:         Thu, 17 Nov 1994 13:00:35 U
  19113. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19114. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19115. From:         Perlman Mike <perlman_mike@SMTPMAC.BAH.COM>
  19116. Subject:      Scripting MS Mail
  19117.  
  19118. I need to control MS Mail via AppleScript.
  19119.  
  19120. Can anyone give any suggestions on how to do this?
  19121.  
  19122. Thanks
  19123. Mike Perlman
  19124. =========================================================================
  19125. Date:         Thu, 17 Nov 1994 07:19:34 -0500
  19126. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19127. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19128. From:         Diana Oswald <cassa003@MAROON.TC.UMN.EDU>
  19129. Subject:      Re: I got this?
  19130.  
  19131. In message <2ecac0fe727f004@maroon.tc.umn.edu> Macintosh Scripting Systems
  19132. writes:
  19133. > Any one ever gotten this from the listserv here?:
  19134. >
  19135. > Sorry. Your message could not be delivered:
  19136. > Message contained no valid addresses.
  19137. >
  19138. > The subject line was: NDN: Newbie on Timer function
  19139. > and I never sent a message like that. Any ideas?
  19140. >
  19141.  
  19142. I got it, too and I never sent a message so it was a big mystery to me, too.
  19143. Maybe somebody accidentally sent that to the list?
  19144.  
  19145. ********************************************************************************
  19146. Diana Oswald
  19147. Financial Policy Development
  19148. (612) 624-1611
  19149. http://www.fpd.finop.umn.edu
  19150.  
  19151. Today is the tommorrow that
  19152. you worried about yesterday.
  19153. =========================================================================
  19154. Date:         Thu, 17 Nov 1994 07:34:33 -0600
  19155. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19156. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19157. From:         Steve Alex <steve_alex@AIDT.EDU>
  19158. Subject:      Re: Service Message
  19159.  
  19160. >Report on your message to: /U=Unknown/@mr.wyeth.com
  19161. >Reason: Unable to transfer; message formatting problem (1)
  19162. >Diagnostic: Maximum time expired (5)
  19163. >Supplementary information: Message was undeliverable to Microsoft mail.  Error
  19164. > confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  19165. >Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
  19166.  
  19167. ...Going on to send the digest back to the list.
  19168.  
  19169. Am I the only one getting these? This is the second or third one I've
  19170. received. Looks like someone putting their faith in Mr. Gates and Micro$oft
  19171. solving all the problems in the world :-)
  19172.  
  19173. Steve Alex                                 (steve_alex@aidt.edu)
  19174.  
  19175.       _/_/_/     _/   _/_/_/_/    _/_/_/_/  Alabama Industrial
  19176.    _/      _/   _/   _/      _/    _/       Development Training
  19177.   _/_/_/_/_/   _/   _/      _/    _/        75 TechnaCenter Dr.
  19178.  _/      _/   _/   _/      _/    _/         Montgomery AL, 36117
  19179. _/      _/   _/   _/_/_/_/      _/          (205) 242-2675
  19180. =========================================================================
  19181. Date:         Thu, 17 Nov 1994 09:26:35 -0500
  19182. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19183. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19184. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  19185. Subject:      Re: Service Message
  19186.  
  19187. ....yes please, do NOT send the entire digest back. I've read all of them
  19188. already and don't know if there's anything useful without reading the whole
  19189. thing again.
  19190.  
  19191. _Deirdre
  19192. =========================================================================
  19193. Date:         Thu, 17 Nov 1994 08:01:23 -0600
  19194. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19195. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19196. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  19197. Subject:      Re(2): backgrounding an applescript application
  19198.  
  19199. Yeah, I'm leaning toward that approach mainly because my check mail script
  19200. takes over everything and I'd like to set it up some idle handlers rather
  19201. than some of the repeat loops I have happening now. Plus, there's a bunch of
  19202. other stuff I'd like to implement in my Swiss Army applet. But where do I
  19203. find the time. Does anyone know of an osax that allows you to do 60 minutes
  19204. of work in 30 minutes?
  19205.  
  19206. Dennis L. Whiteman
  19207. THE ULTIMATE FREELANCER
  19208. ultimate@mail.icon.net
  19209.  
  19210.  ------ From: Macintosh Scripting Systems, Fri, Nov 18, 1994 ------
  19211.  
  19212. You could also vary the technique to store a list of files to run a script
  19213. on, or any of a zillion permutations.  Regardless, you can put this script
  19214. into your startup folder and it will run your scripts, one at a time.
  19215.  
  19216. Jon
  19217. =========================================================================
  19218. Date:         Thu, 17 Nov 1994 08:23:07 -0600
  19219. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19220. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19221. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  19222. Subject:      Re: buyer's remorse
  19223.  
  19224. > When I heard about the System 7.5 upgrade I
  19225. > thought, "that sounds like a good deal. I can
  19226. > get the Scriptable Finder, which I otherwise
  19227. > would have to pay at least $25 for, and all
  19228. > that other stuff thrown in for a few bucks
  19229. > more."
  19230.  
  19231. I originally thought that also, but Apple released version 1.2 of the Finder
  19232. Scripting extension to on-line services (and to their ftp sites) a month or
  19233. so before I ordered 7.5. I went ahead and ordered the upgrade because after a
  19234. lot of thought I decided I needed/wanted PowerTalk. In my mind, PowerTalk is
  19235. worth every cent of the price of the upgrade (even with its bugs).
  19236.  
  19237. > And, yes, another $25 bucks here or there  _is_
  19238. > a big deal to me.
  19239.  
  19240. $25 is just as important to me. But in my case, I paid $35 for the 7.5
  19241. upgrade based on my June Power Mac purchase and it was worth every cent. I'm
  19242. not sure I would have paid $99. Now, I have some doubts about buying the ARA
  19243. 2.0.1 upgrade since some of what I use ARA for could have been done with
  19244. direct dialup, but the 7.5 upgrade was a good deal.
  19245.  
  19246. > Is there any way of using the Scriptable Finder
  19247. > as it came with 7.5 with the old System.
  19248.  
  19249. I d/led the Finder Scripting Extension 1.2 a month or so ago. It works with
  19250. Finder 7.1.3 or later. Obviously, this ships with Power Macs, but it was was
  19251. also part of a Macintosh Drag and Drop package I d/led from eWorld. Note that
  19252. this Finder is not in every D&D package, but for some reason it was in the
  19253. one that I originally d/led a couple of months ago.
  19254.  
  19255. > The crashes I get are so random and
  19256. > unreproducible, I don't know where to begin to
  19257. > stabilize things. Anyone seen any compilations
  19258. > of actual real figured out incompatabilities
  19259. > anywhere?
  19260.  
  19261. I get some wierd crashes, but I've finally got everything close to stable. My
  19262. first problem was with my hard disk driver (APS 2.8.2 vs APS 3.0.5). Then, I
  19263. tossed the Color Lookup extension and also the Apple Menu Items control
  19264. panel. I've been going through like a mad man and junking things that just
  19265. aren't worth the RAM (I've got to pay for the extra 2 or 3 megs used by
  19266. PowerTalk somehow). I'm seriously considering RAMDoubler, but I wonder if it
  19267. won't introduce more problems than it solves. I suppose my next task will be
  19268. to junk the desktop patterns, but I'm getting attached to the placemat
  19269. one.;-{>=
  19270.  
  19271. Dennis L. Whiteman
  19272. THE ULTIMATE FREELANCER
  19273. ultimate@mail.icon.net
  19274. =========================================================================
  19275. Date:         Thu, 17 Nov 1994 09:30:57 -0500
  19276. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19277. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19278. From:         John Schettino <js12@GTE.COM>
  19279. Subject:      Re: buyer's remorse
  19280.  
  19281. Caution: non AppleScript message!
  19282.  
  19283. I've been watching the Mac system newsgroup for a while to see what the
  19284. deal was with system 7.5. Some people love it, others hate it, have
  19285. problems, etc.
  19286.  
  19287. There are *THREE* things you can do with system 7.5 that seem to make it
  19288. work much better:
  19289.  
  19290. 1) update your disk driver using the new Apple HD SC Setup if you have an
  19291. Apple drive, or get the latest driver from your 3rd party drive
  19292. manufacturer. Why? Because on all Quadras and PowerMacs the OS will use the
  19293. new Scuzzy Manager if the driver's updated (and your disk 0/i will be
  19294. faster) *OR USE THE COMPATIBILTY DRIVER WHICH MAKES YOUR DISK I/O SLOWER*
  19295. if you stay with an old driver.
  19296.  
  19297. 2) do a *clean* install, not an update! Do this by
  19298.         - dragging finder out of your current System Folder
  19299.         - renaming your System Folder to "Old System Folder"
  19300.         - proceed with the install
  19301.  
  19302.         - move back all your CPs and extensions and prefs (but not the
  19303. finder prefs) to the new system folder
  19304.  
  19305. 3) trash any CPs or extentions you are not going to use, turn off "Remember
  19306. recently used items" in Apple Menu Options, set your disk cache to 512kb,
  19307. dump any fonts you are not using.
  19308.  
  19309.  
  19310. I've been running a PowerMac 7100 and a Centris 650 with 7.5 after doing a
  19311. clean install and they are slightly faster, use about .5mb more memory for
  19312. the system (mostly disk cache) and crash less that 7.1.
  19313.  
  19314.  
  19315. Give these suggestions a try if you're having problems with 7.5
  19316.  
  19317.  
  19318. Why? (Ah, the AppleScript Part!) Because if people are interested in buying
  19319. 7.5 then we'll have a larger base of users of AppleScript, and that's a
  19320. good thing (tm)
  19321.  
  19322.  
  19323.  
  19324. - john
  19325.  
  19326. -----------------------------------------
  19327. js12@gte.com             GTE Laboratories
  19328. John Schettino                Waltham, MA
  19329. =========================================================================
  19330. Date:         Thu, 17 Nov 1994 09:49:25 +0000
  19331. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19332. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19333. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  19334. Subject:      Re: Service Message
  19335.  
  19336. >Am I the only one getting these? This is the second or third one I've
  19337. >received. Looks like someone putting their faith in Mr. Gates and Micro$oft
  19338. >solving all the problems in the world :-)
  19339. >
  19340. >Steve Alex                                 (steve_alex@aidt.edu)
  19341. >
  19342.  
  19343. Nope, I too have received them 3 times this morning. But I also have gotten
  19344. just about all of my mesages several times today...hmm....
  19345.  
  19346. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  19347.          www server: http://josaiah.sewanee.edu/          )
  19348. =========================================================================
  19349. Date:         Thu, 17 Nov 1994 08:54:31 -0700
  19350. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19351. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19352. From:         Michael Adams <micadams@BLUE.UNIVNORTHCO.EDU>
  19353. Subject:      Maybe Applescript, maybe not
  19354.  
  19355. I have a problem that is driving me kumquats (I'm not as fond of bananas).
  19356. It may be an applescript problem or it may be a network problem. If anyone
  19357. has any insight, I would be grateful.
  19358.  
  19359. The situation:
  19360. I have set up a mailing list on a novell server using maiser software. It
  19361. listens on port 25. It works beautifully when I send a message via Eudora.
  19362. My pop server is on an RS-6000.
  19363.  
  19364. On my machine I have altered the "send mail" script of Atul Butte so that
  19365. when I drop a text file on it, the script reads the first line of the text
  19366. file, uses that as the subject line, and then automatically mails the rest
  19367. of the text file as a mail message. This will be extremely useful as I am
  19368. about to begin teaching a class via email. This way I can prepare "lessons"
  19369. as text files and simply drop them on the droplet.
  19370.  
  19371. This script works like a dream when sending it to myself on the pop server.
  19372. But when I try to send it to the novell server list, I get the message
  19373. "Syntax error in parameters or arguments". I clear that message and I get
  19374. another one, "Error in parameters or arguments 501." I have looked in
  19375. EasyErrors and 501 is not a valid error message for a Mac. I don't know if
  19376. this is a MacTCP error, an OSAX error, a network error or what.
  19377.  
  19378. Why would it work as advertised when going to the pop server, but won't go
  19379. to the novell server?
  19380.  
  19381. Even some insight on where to look or what to fiddle with would be helpful.
  19382.  
  19383.  
  19384. ======================\/======================
  19385. Michael Adams
  19386. Writer/Editor, University News & Publications
  19387. University of Northern Colorado, Greeley, Colorado 80639
  19388. micadams@mail.UnivNorthCo.edu
  19389.  
  19390. This message sent using recycled electrons. Please recycle again.
  19391. ======================/\=======================
  19392. =========================================================================
  19393. Date:         Thu, 17 Nov 1994 11:52:00 -0500
  19394. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19395. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19396. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  19397. Subject:      Re: backgrounding an applescript application
  19398.  
  19399. >I want to know how to make an applescript saved as a stay open application
  19400. >stay in the background (as in, not appearing in the application menu) at
  19401. >all times.
  19402. >
  19403. >Here's what I'm trying to do: I have a little script that, if it's two
  19404. >minutes after midnight, quits Filemaker Pro if it's open, opens a Filemaker
  19405. >database, and then quits it. I'm doing this so that the Today function gets
  19406. >recalculated every day and at a time when no one is using it so they don't
  19407. >have to sit through the calculation.
  19408. >Clearly, this script needs to be open at all times, and I can't trust the
  19409. >users of the system not to quit it if they see it in the application menu.
  19410. >Hence my question.
  19411. >
  19412. >I tried a horrendous hack which, not surprisingly, didn't work: I opened
  19413. >the size resource with ResEdit and checked the "Always Background" bit.
  19414. >When launched, the script did in fact go into the background, but it also
  19415. >crashed my computer when I checked the application menu.
  19416. >
  19417. >If anyone had other ideas about how to do this, that would be appreciated
  19418. >too. I tried to use Cron to do this, but couldn't for the life of me get it
  19419. >to open a file. I could beep with it, flash dialogs, open a _program_,
  19420. >etcetera, but I absolutely couldn't get it to open a file.
  19421. >
  19422. >Any help would be appreciated. Thanks.
  19423. >
  19424. >Aaron Brockett
  19425. >abrocke1@cc.swarthmore.edu
  19426.  
  19427. I would recommend using FaceSpan to create your applet.  FaceSpan allows
  19428. you to define your applets menu bar ie. remove quit from the menu bar.
  19429. This should stop your users from quitting it.  Of course they could do a
  19430. force quit but but hey, they could also just push the computer off the
  19431. desk...
  19432.  
  19433. Mark Hadfield
  19434. hadfield@sickkids.on.ca
  19435. The Hospital For Sick Children
  19436. =========================================================================
  19437. Date:         Thu, 17 Nov 1994 10:58:17 +0000
  19438. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19439. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19440. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  19441. Subject:      Re: buyer's remorse
  19442.  
  19443. [...]
  19444.  I'm seriously considering RAMDoubler, but I wonder if it
  19445. >won't introduce more problems than it solves. I suppose my next task will be
  19446. >to junk the desktop patterns, but I'm getting attached to the placemat
  19447. >one.;-{>=
  19448. >
  19449.  
  19450. I've been using RAMDoubler & MaxRAM (ftpable) for some yime now (2 months?)
  19451. w/ 7.1 with no problems. I think it is definately worth the $$ and you can
  19452. get it for about 50 from the redistributors (I think it's 99 from
  19453. Connectrix).
  19454.  
  19455. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  19456.          www server: http://josaiah.sewanee.edu/          )
  19457. =========================================================================
  19458. Date:         Thu, 17 Nov 1994 09:18:29 U
  19459. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19460. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19461. From:         Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV>
  19462. Subject:      Re: buyer's remorse
  19463.  
  19464.                        Subject:                               Time:8:56 AM
  19465.   OFFICE MEMO          RE>buyer's remorse                     Date:11/17/94
  19466.  
  19467. Barry Sez:
  19468.   > "I'm assuming, anyway, from my one experiment with it that I _can't_ use
  19469.   > the Finder that came with 7.5 with my 7.1 System."
  19470.  
  19471. Aaaauuuuggghhh!!  Mixing parts of different Systems WILL result in a hosed
  19472. hard drive, and most likey hosed data as well.  Mixing System components is
  19473. like trying to fit your bicycle with your car's engine....suicide.
  19474.  
  19475.   > "...attempting to disable the old Finder without actually throwing it away
  19476. was to put it on the
  19477.   > Desktop? Was that my mistake?"
  19478.  
  19479. Having multiple Systems ("System" being a generic term for the set of software
  19480. that controls your hard disk) on a single volume will cause problems.
  19481.  
  19482.   > "Is there any way of using the Scriptable Finder as it came with
  19483.   > 7.5 with the old System."
  19484.  
  19485. Again, System Software is a suite of software parts that are put together to
  19486. create a single, cohesive, compatible engine that controls the function of
  19487. your computer.  While you may (with much frustration and effort) be able to
  19488. create a "FrankenSystem" that will seem to work, remember that Dr.
  19489. Frankenstein's creation _seemed_ to work as well.  And we all know how that
  19490. turned out.
  19491.  
  19492.   > "I suppose I'll want to throw in the towel and keep living in the
  19493. future..."
  19494.  
  19495. Remember that the System writes all of your data to the hard disk, and then
  19496. makes a catalog of what is on the disk (called a "directory").  If the System
  19497. is questionable, then it is only logical to assume that the data on the hard
  19498. disk is questionable.  (Yes, including the directory.  So files that have
  19499. nothing to do with AppleScript of the System Folder [i.e - your data] may be
  19500. hosed or lost as well.)  At this point, my (albeit extreme, but safe)
  19501. suggestion is to backup what little data may be salvageable, reformat the hard
  19502. disk, and reinstall the System (whicher one you choose, but _only_one_!), then
  19503. copy your data back to the drive.  Otherwise you can never be sure that your
  19504. directory map is not just going to up and explode one day.  (Not trying to be
  19505. fatalistic, I just know that after doing 8+ years of Tech Support, this is not
  19506. an unreasonable scenario.)
  19507.  
  19508.   > "The crashes I get are so random and unreproducible, I
  19509.   > don't know where to begin to stabilize things. Anyone seen any
  19510.   > compilations of actual real figured out incompatabilities anywhere?"
  19511.  
  19512. Just to reiterate; the problem is not incompatibilities, but an unstable
  19513. FrankenSystem.  The best way to isolate random crashes is a program from
  19514. Casady & Greene called Conflict Catcher.  Apple uses it in Software
  19515. Development to assist in their troubleshooting, but it is simle enough to be
  19516. used by the most inexperienced user.
  19517.  
  19518.  
  19519. Finally, I do not mean to publicly ream you.  I am just trying to be verbose
  19520. so that anyone else considering similar actions know what they are getting
  19521. into.  Messing with the System is dangerous stuff.  Before doing so in the
  19522. future, anyone considering these kinds of actions should consider, "Do I
  19523. really think that I know the System better than the whole fleet of Apple
  19524. Software Engineers that created it?"
  19525.  
  19526. Hope the information I provided above gives you the help you need to get back
  19527. up and running, as well as help you understand how the System works a little
  19528. better.
  19529.  
  19530. - Christian
  19531. jacobsen@george.arc.nasa.gov
  19532.  
  19533. *** The opinions expressed herein are MINEMINEMINEMINE!!!! ***
  19534. =========================================================================
  19535. Date:         Thu, 17 Nov 1994 11:54:23 -0600
  19536. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19537. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19538. From:         David Messina <messina@MCS.COM>
  19539. Subject:      Eudora Announcer script
  19540.  
  19541. I have some free time today, so I'm trying to set up the Eudora Announcer
  19542. 1.0 script by Roel Vertegaal and Ronald Leenes.
  19543.  
  19544. I have installed in my Scripting Additions Folder:
  19545.  
  19546. Gestalt OSAX
  19547. Eudora Notification Rev 2 OSAX
  19548.  
  19549. I also have installed:
  19550.  
  19551. Speech Manager
  19552. Applescript (of course)
  19553. Eudora 2.1
  19554.  
  19555. In short, all the pieces seem to be in place.  I fire up Eudora Announcer,
  19556. but when new mail arrives, nothing happens.
  19557.  
  19558. I think the answer lies in this bit of the description text from Eudora
  19559. Announcer:
  19560.  
  19561. "It will get a notification event (in background !!) from Eudora once you
  19562. have notified Eudora to do so by using the Eudora Notify
  19563. Controller."
  19564.  
  19565.  
  19566. What exactly does this mean?  Do I have to add a little script which will
  19567. have Eudora send out a notify event whenever new mail comes?
  19568.  
  19569.  
  19570. Thanks for any assistance,
  19571.  
  19572. David
  19573.  
  19574.  
  19575.  
  19576. --
  19577.  
  19578. David Messina
  19579. messina@mcs.com
  19580. =========================================================================
  19581. Date:         Thu, 17 Nov 1994 10:37:25 -0800
  19582. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19583. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19584. From:         Jeff Johnson <jkjonson@ZNET.COM>
  19585. Subject:      Users, Groups, Program Linking
  19586.  
  19587. Hello everyone!
  19588.  
  19589. Sorry if this is a rehash of something previously covered in this mail
  19590. list, but I'm a newbie (covering head in shame) to MACSCRPT.
  19591.  
  19592. The Users and Groups control panel appears to be fairly unscriptable via
  19593. the System 7.5 Finder.  You can set the user name and some trivial
  19594. properties of the user, but you can't set the password or turn sharing or
  19595. program linking or remote access capabilities on or off through scripts.
  19596. Clearly Apple wanted to prevent massive security breaches by preventing
  19597. access to these user properties.
  19598.  
  19599. I am developing an application in which I need to create a specific user
  19600. name, with password, and turn program linking on for that user.  I can't do
  19601. it wit the Scriptable Finder directly, but I was wondering if there are any
  19602. OSAXen out there which have this capability.  If not I can live with just
  19603. opening the Users and Groups control panel for the user and prompting them
  19604. to create the user whose privileges I need, but I'd like a cleaner way to
  19605. do it, if possible.  Hard to do that without opening the system to all
  19606. sorts of security holes, though.
  19607.  
  19608. If anyone has heard of a public-key encryption OSAX for transferring secure
  19609. information across PPC, I'd also like to know about that.
  19610.  
  19611. Thanks!
  19612.  
  19613.  
  19614.  
  19615. Jeff Johnson
  19616.  
  19617. --------------------------------------------------------------------------------
  19618.           Software Engineer, Charon, Inc., Cupertino, California, USA
  19619. --------------------------------------------------------------------------------
  19620. #include <std/disclaimer.h> /* Any opinions expressed in my posts and email   */
  19621.                             /* are mine alone, and do not necessarily reflect */
  19622.                             /* those of my employer or associates.            */
  19623. --------------------------------------------------------------------------------
  19624.           email: jkjonson@znet.com, jeffreyj8@aol.com, jkj@netcom.com
  19625. --------------------------------------------------------------------------------
  19626. =========================================================================
  19627. Date:         Thu, 17 Nov 1994 10:46:52 -0800
  19628. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19629. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19630. From:         David Lewis <lewis@NETCOM.COM>
  19631. Subject:      Re: Eudora Announcer script
  19632.  
  19633. >I have some free time today, so I'm trying to set up the Eudora Announcer
  19634. >1.0 script by Roel Vertegaal and Ronald Leenes.
  19635. >
  19636. >"It will get a notification event (in background !!) from Eudora once you
  19637. >have notified Eudora to do so by using the Eudora Notify
  19638. >Controller."
  19639. >
  19640. >
  19641. >What exactly does this mean?  Do I have to add a little script which will
  19642. >have Eudora send out a notify event whenever new mail comes?
  19643. >
  19644. Execute the following script in the script editor:
  19645.  
  19646. tell application "Eudora 2.1"
  19647.     notify alias "theDisk:theFolder:Eudora Announcer 1.0" when mail arrives
  19648. end tell
  19649.  
  19650. You only have to do it once.
  19651.  
  19652.     David
  19653.  
  19654. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  19655. =========================================================================
  19656. Date:         Thu, 17 Nov 1994 13:49:40 -0500
  19657. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19658. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19659. From:         Mark Duffield <duffiem@AA.WL.COM>
  19660. Subject:      Re: Users, Groups, Program Linking
  19661. In-Reply-To:  Jeff Johnson <jkjonson@ZNET.COM> "Users, Groups,
  19662.               Program Linking" (Nov 17, 10:37am)
  19663.  
  19664. On Nov 17, 10:37am, Jeff Johnson wrote:
  19665. > Subject: Users, Groups, Program Linking
  19666. > Hello everyone!
  19667. >
  19668. > Sorry if this is a rehash of something previously covered in this mail
  19669. > list, but I'm a newbie (covering head in shame) to MACSCRPT.
  19670. >
  19671. > The Users and Groups control panel appears to be fairly unscriptable via
  19672. > the System 7.5 Finder.  You can set the user name and some trivial
  19673. > properties of the user, but you can't set the password or turn sharing or
  19674. > program linking or remote access capabilities on or off through scripts.
  19675. > Clearly Apple wanted to prevent massive security breaches by preventing
  19676. > access to these user properties.
  19677. >
  19678.  
  19679. Try
  19680.         set file sharing to true
  19681. and
  19682.         set file sharing to false
  19683.  
  19684. I found these in the "Automated Tasks" folder in the Apple Menu under 7.5.
  19685.  
  19686. >
  19687. > Jeff Johnson
  19688. >
  19689. >
  19690. >-- End of excerpt from Jeff Johnson
  19691.  
  19692.  
  19693.  
  19694.  
  19695. --
  19696. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19697.  Mark J. Duffield                    | duffiem@aa.wl.com
  19698.  Sr. Systems Specialist              |
  19699.  Preclinical Scientific Computing    | MIME Spoken here.
  19700.  Parke Davis Pharmaceutical Research |
  19701.  Ann Arbor, MI  48105                |
  19702. =========================================================================
  19703. Date:         Thu, 17 Nov 1994 19:01:43 GMT
  19704. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19705. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19706. From:         Dan Hinckley <dbh@GN.APC.ORG>
  19707. Subject:      Re(2): backgrounding an applescript application
  19708.  
  19709.  Does anyone know of an osax that allows you to do 60 minutes
  19710. >of work in 30 minutes?
  19711. >
  19712. >Dennis L. Whiteman
  19713.  
  19714. Yup,
  19715.  
  19716. It's called TimeDoubler, based on e=mc(squared) <ggg> Hard to find at your
  19717. favorite site though...
  19718. =========================================================================
  19719. Date:         Thu, 17 Nov 1994 19:02:28 GMT
  19720. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19721. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19722. From:         Dan Hinckley <dbh@GN.APC.ORG>
  19723. Subject:      more Eudora
  19724.  
  19725. Two questions:
  19726.  
  19727. 1) This line in a 'Tell app "Eudora.." ' opens a reply message w/the msg
  19728. body selected . Anyone tell me whether/how AS can be used to move the
  19729. insertion point to the top or bottom of the quoted msg body? I haven't
  19730. found an osax for it w/that capacity yet:
  19731.  
  19732. >set theReply to reply message n of mailbox "test" with quoting and self
  19733.  
  19734. 2) Anyone suggest how to test if a mailbox is 'open'? 'Open' doesn't appear
  19735. to be a property of a mailbox. FileBusy doesn't seem to help either...
  19736. =========================================================================
  19737. Date:         Thu, 17 Nov 1994 11:04:17 -0800
  19738. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19739. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19740. From:         Kevin Purcell <kevinpu@ATM.COM>
  19741. Subject:      Re: buyer's remorse
  19742.  
  19743. >Caution: non AppleScript message!
  19744.  
  19745. >2) do a *clean* install, not an update! Do this by
  19746.  
  19747. Which you can do directly in system 7.5 with mumble-K in the Installer
  19748. window (cmd/opt or cmd shift -- try all the combinations). This is
  19749. documented in the manual (near the back). I guess they finally realised
  19750. that we were tired of the "Clean System" dance.
  19751.  
  19752. >3) trash any CPs or extentions you are not going to use, turn off "Remember
  19753. >recently used items" in Apple Menu Options, set your disk cache to 512kb,
  19754. >dump any fonts you are not using.
  19755.  
  19756. Better still do a custom install for only your type of machine (assuming
  19757. the system is not on a roving hard disk). The sift out the things your
  19758. really don't need.
  19759.  
  19760. >Give these suggestions a try if you're having problems with 7.5
  19761.  
  19762. We have very few problems with System 7.5 -- its seems pretty stable. And
  19763. it gets AppleScript to the masses (as John S said).
  19764.  
  19765. Kevin Purcell      Attachmate Corp        (206) 649-6489
  19766. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  19767. =========================================================================
  19768. Date:         Thu, 17 Nov 1994 11:06:19 -0800
  19769. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19770. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19771. From:         Jeff Johnson <jkjonson@ZNET.COM>
  19772. Subject:      Re: Kee's show and tell
  19773.  
  19774. You wrote... {a bunch of text deleted}...
  19775.  
  19776. >After getting frustrated with FaceSpan, I started using HyperCard as my
  19777. >User Interface builder. So most of my UI is in HyperTalk.
  19778. >
  19779. >I have a sequence of tasks that are partly AppleScript and partly HyperTalk
  19780. >so I built a set of buttons, each with a HyperTalk or AppleScript task. I
  19781. >pass data between these scripts in card fields. Yes I know it's crude but
  19782. >it gives me the ability to debug each button separately because the data
  19783. >stays in the card fields.
  19784. ...
  19785. >It's probably worth talking about roadkill I've encountered along the way.
  19786. >
  19787. >FaceSpan was the first. It was just too painful to get it to do what I
  19788. >wanted. Think of it as an abandoned card on the highway. It limps along if
  19789. >you baby it but after a while it's faster to hitchhike and catch another
  19790. >ride.
  19791. ....
  19792. >
  19793. >Kee Nethery
  19794. >
  19795. >_______________________________________________________________
  19796. >Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
  19797.  
  19798. Kee,
  19799.  
  19800. What exactly did you find troublesome about FaceSpan?  I'm writing a fairly
  19801. complex application in it right now, and although it was kind of weird at
  19802. the beginning, I find i perfectly comfortable now.  I wish it had an
  19803. interactive debugger (are you listening, nice people at SDU? I hope so),
  19804. and I've found a few redraw problems, but overall I'm fairly impressed.
  19805. (This comes after years of developing in HyperCard and a frustrating
  19806. experience trying to program something that looks a lot like FaceSpan but
  19807. uses a superset of HyperTalk, which I won't mention by name).  FaceSpan
  19808. could use a few extra goodies, like drag and drop support, and I wouldn't
  19809. mind if it executed scripts a bit more quickly.
  19810.  
  19811. The one thing I do think's a bit weird about implementing scripts that
  19812. control the same application on a number of Macs at once is that I have to
  19813. write them out as text, substituting in the name of the Mac to which I want
  19814. to send the events, and then execute the entire thing as a script object.
  19815. For example, if I collect a list of Macs running PPCToolBox from the
  19816. network, and I want to send the same script to the Finder on each of these
  19817. Macs, I have to write the script out as text, substitute in the name of
  19818. each Mac, copy the whole schmear into the script container of some object,
  19819. and then tell that object to execute its script.  I wish there were a nicer
  19820. way to do this.  Something like:
  19821.  
  19822. copy "Zone" to zoneName
  19823. copy {"Mac One","Mac Two","Mac Three"} to macList
  19824. repeat with macName in macList
  19825. tell application "Finder" of machine macName in zone zoneName
  19826.    ... miscellaneous Finder commands...
  19827. end tell
  19828.  
  19829. This would be very nice.  Having to work around it is a pain in the butt,
  19830. and slow besides.
  19831.  
  19832. Maybe this is just a limitation of FaceSpan.  Or is it a limitation of
  19833. AppleScript in particular?
  19834.  
  19835. Best regards,
  19836.  
  19837.  
  19838.  
  19839. Jeff Johnson
  19840.  
  19841. --------------------------------------------------------------------------------
  19842.           Software Engineer, Charon, Inc., Cupertino, California, USA
  19843. --------------------------------------------------------------------------------
  19844. #include <std/disclaimer.h> /* Any opinions expressed in my posts and email   */
  19845.                             /* are mine alone, and do not necessarily reflect */
  19846.                             /* those of my employer or associates.            */
  19847. --------------------------------------------------------------------------------
  19848.           email: jkjonson@znet.com, jeffreyj8@aol.com, jkj@netcom.com
  19849. --------------------------------------------------------------------------------
  19850. =========================================================================
  19851. Date:         Thu, 17 Nov 1994 11:10:06 -0800
  19852. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19853. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19854. From:         Doug Baron <userland@NETCOM.COM>
  19855. Subject:      Re: Frontier Listserv scripts (was Listserv scripts for the Mac)
  19856.  
  19857. At  8:43 PM 11/15/94 -0500, Jay Thomas wrote:
  19858. >>>Someone recently asked on the info-mac list about being able to provide
  19859. >>>listserv email list management and processing on the Mac.  While I haven't
  19860. >>>seen anything to do this (at least in shareware), it occurred to me that
  19861. >>>with the latest 1.0b8 version of MailShare, a freeware POP email server for
  19862. >>>the mac, that this might be possible through some scripting, so I thought I
  19863. >>>would run this by you and see if anyone has worked on this.
  19864. >>>
  19865. >>>       .....
  19866. >>>
  19867. >>>Does anyone have any feedback or suggestions on how this could be done
  19868. >>>better on a Mac or things that I've overlooked that I should consider
  19869. >>>before spending time on playing around with scripts to do this?
  19870. >>>
  19871. >>
  19872. >>My only suggestion would be that you might use Frontier. I know that Dave
  19873. >>Winer has implemented pretty much what you descibe with just Frontier and
  19874. >>Eudara alone. No need for the scriptable finder, osax, or anything else to
  19875. >>get the job done.
  19876. >>
  19877. >>Doug
  19878. >
  19879. >where can i get this? does it work with the frontier runtime.
  19880.  
  19881. The answer, from Dave:
  19882.  
  19883. At  7:23 AM 11/17/94 -0800, Dave Winer wrote:
  19884. >Doug:
  19885. >
  19886. >It will work with Frontier Runtime just fine.
  19887. >
  19888. >And the scripts will be freely available. Just want to make a couple more
  19889. >passes at cleaning them up so they're good sample code.
  19890. >
  19891. >If possible, pass this message onto the MACSCRPT mailing list.
  19892. >
  19893. >Dave
  19894. =========================================================================
  19895. Date:         Thu, 17 Nov 1994 11:23:08 -0800
  19896. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19897. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19898. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  19899. Subject:      Re: buyer's remorse
  19900.  
  19901. >I suppose I'll want to throw in the towel and keep living in the future,
  19902. >anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
  19903. >the moment, aside from the pretty little desktop pattern I doodled out
  19904. >late one night. The crashes I get are so random and unreproducible, I
  19905. >don't know where to begin to stabilize things. Anyone seen any
  19906. >compilations of actual real figured out incompatabilities anywhere?
  19907.  
  19908. System 7.5 is quite stable.  There are some old INITs and applications
  19909. which have long been broken, and which cause more problems with 7.5 than
  19910. they did.  These will only become older, stay broken, and cause more
  19911. problems in the future.  Sooner or later, you'll have to get rid of
  19912. them...why not now?
  19913.  
  19914. I'm not having System 7.5 problems, and have no intention of going back
  19915. (except for one system on a Syquest, which I can run a couple of times a
  19916. year when I need to use the fax side of my fax modem...pending some fax
  19917. software house getting its act together).
  19918.  
  19919.    --John
  19920.  
  19921. --
  19922. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19923. =========================================================================
  19924. Date:         Thu, 17 Nov 1994 11:23:12 -0800
  19925. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19926. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19927. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  19928. Subject:      Re: I got this?
  19929.  
  19930. >In message <2ecac0fe727f004@maroon.tc.umn.edu> Macintosh Scripting Systems
  19931. >writes:
  19932. >> Any one ever gotten this from the listserv here?:
  19933. >>
  19934. >> Sorry. Your message could not be delivered:
  19935. >> Message contained no valid addresses.
  19936. >>
  19937. >> The subject line was: NDN: Newbie on Timer function
  19938. >> and I never sent a message like that. Any ideas?
  19939. >>
  19940. >
  19941. >I got it, too and I never sent a message so it was a big mystery to me, too.
  19942. >Maybe somebody accidentally sent that to the list?
  19943.  
  19944. Internet mail systems bounce messages back to the apparent sender if there
  19945. are any of thousands of possible problems with them (in the case at hand,
  19946. it seems to be a bogus address).  These are automated...the programs don't
  19947. care if you ask them not to...some send the whole message back, some don't.
  19948.  
  19949. List server programs work very had to avoid reflecting those bounce
  19950. messages to the lists they operate.
  19951.  
  19952. Internet mail systems work very hard to produce new style bounce messages
  19953. which the list server programs don't recognize as such.  In this case, a
  19954. mailer has succeeded in fooling the list server at Dartmouth (one of the
  19955. better list servers, too).
  19956.  
  19957. It's one of the seven wonders of the Internet.
  19958.  
  19959. [It's also why you find yourself unsubscribed from lists you are on if you
  19960. let your mailbox fill up for very long...part of the defensive actions by
  19961. the list server programs and the list owners.]
  19962.  
  19963. For light reading:  "The Unix Haters Handbook"  [yes, the Unix members of
  19964. the community are large contributors to the problem] Garfinkel, Weise &
  19965. Strassmann (with an "anti-foreward" by Dennis Ritchie).  ISBN 1-56884-203-1
  19966.  
  19967.    --John
  19968.  
  19969. --
  19970. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  19971. =========================================================================
  19972. Date:         Thu, 17 Nov 1994 13:44:23 -0600
  19973. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19974. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  19975. From:         "Stephen E. Collins" <sec@BOOMBOX.MICRO.UMN.EDU>
  19976. Subject:      Re: Re(2): backgrounding an applescript application
  19977.  
  19978. In message <199411171933.NAA25996@boombox.micro.umn.edu> Macintosh Scripting
  19979. Systems writes:
  19980. >  Does anyone know of an osax that allows you to do 60 minutes
  19981. > >of work in 30 minutes?
  19982. > >
  19983. > >Dennis L. Whiteman
  19984. >
  19985. > Yup,
  19986. >
  19987. > It's called TimeDoubler, based on e=mc(squared) <ggg> Hard to find at your
  19988. > favorite site though...
  19989.  
  19990. Not at all!  It's going to be available on all the major archive sites
  19991. beginning tomorrow.
  19992.  
  19993.  
  19994. Stephen E. Collins   <URL:http://www.micro.umn.edu/staff/sec>
  19995. University of Minnesota             sec@boombox.micro.umn.edu
  19996. Distributed Computing Services   (612) 625-1300 Fax: 625-6817
  19997.  
  19998.             Remember to give back to the net.
  19999. =========================================================================
  20000. Date:         Fri, 18 Nov 1994 08:57:00 +1300
  20001. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20002. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20003. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  20004.               NZ" <LDO@WAIKATO.AC.NZ>
  20005. Subject:      Re: OSAX source??
  20006.  
  20007. "Allan R. Crump Jr" <jhhw@CRL.COM> writes:
  20008.  
  20009. >I am an avid learner in programming and have enjoyed every moment of
  20010. >putting the finishing touches on my first application. For my next
  20011. >project, I am trying to finish up my first OSAX, written in Think Pascal.
  20012. >I am having a bit of trouble however, with the compiler complaining that
  20013. >"THEPORT" is not defined. I have insured that all of the correct
  20014. >libraries are added to the project and in the right order, and that my
  20015. >syntax is correct.
  20016.  
  20017. Bad, bad. "thePort" is a QuickDraw global, which lives in the A5 world.
  20018. Only applications have their own A5 worlds; your osax does not. Thus, it
  20019. cannot access QuickDraw globals in the conventional way, using names like
  20020. "thePort".
  20021.  
  20022. Thought: are you calling InitGraf? You don't need to. Maybe that's all the
  20023. problem is.
  20024.  
  20025. >Would someone (preferably a Pascal programmer) be willing to post or
  20026. >forward some source code on the creation of their OSAX so I can compare and
  20027. >see what I may be doing wrong ?
  20028.  
  20029. I'd be willing to share some Modula-2 code, since that's what I write my
  20030. stuff in.
  20031.  
  20032. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  20033. Computer Services Dept                     fax: +64-7-838-4066
  20034. University of Waikato            electric mail: ldo@waikato.ac.nz
  20035. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  20036. =========================================================================
  20037. Date:         Thu, 17 Nov 1994 13:22:49 -0700
  20038. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20039. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20040. From:         Ralph Risch <risch@ALUMNI.CS.COLORADO.EDU>
  20041. Subject:      BeyondMenus XTension
  20042.  
  20043.    Those of you that script QuarkXPress might want to download Acrobyte's new
  20044. BeyondMenus XTension - among other things, BeyondMenus adds a 'Scripts' menu
  20045. to XPress which reflects the contents of a 'Scripts' folder in the QuarkXPress
  20046. folder. Placing a script in this folder causes it to appear in the menu (you
  20047. can create hierarchies), and you can assign key equivalents to any script.
  20048.    Scripts are also executed in-context (they're _fast_), and BeyondMenus also
  20049. caches the script executables for additional speed. (There is more
  20050.  functionality,
  20051. but I'll let you download it to find out :-)).
  20052.  
  20053. BeyondMenus is available at the following locations:
  20054.  
  20055. ftp://sumex-aim.stanford.edu/info-mac/app/quark-beyond-menus-10.hqx
  20056.  
  20057. Compuserve:
  20058.         Mac DTP Forum - Demos
  20059.         Quark Forum - XTensions
  20060.  
  20061. eWorld:
  20062.         Ziff Software
  20063.  
  20064. AOL:
  20065.         DeskTop Publishing/Software
  20066.         Quark/3rd party XTensions
  20067. =========================================================================
  20068. Date:         Fri, 18 Nov 1994 09:48:00 +1300
  20069. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20070. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20071. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  20072.               NZ" <LDO@WAIKATO.AC.NZ>
  20073. Subject:      Re: buyer's remorse
  20074.  
  20075. Barry Chern <bchern@FREENET.COLUMBUS.OH.US> writes:
  20076.  
  20077. >I'm assuming, anyway, from my one experiment with it that I _can't_ use
  20078. >the Finder that came with 7.5 with my 7.1 System. It seemed to work at
  20079. >first, but I couldn't move anything to or from the Desktop. Or, was that
  20080. >just because my way of attempting to disable the old Finder without
  20081. >actually throwing it away was to put it on the Desktop?
  20082.  
  20083. I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work. My method of disabling
  20084. the Finder is to rename it with ResEdit. I currently have three Finders in
  20085. my System Folder: the original Finder 7.1.4, a patched version to disable
  20086. the no-oping of the scrollbar delay, and a working copy of the latter, which
  20087. is what I'm currently running.
  20088.  
  20089. What exactly happened when you tried moving stuff to/from the desktop?
  20090.  
  20091. >I suppose I'll want to throw in the towel and keep living in the future,
  20092. >anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
  20093. >the moment, aside from the pretty little desktop pattern I doodled out
  20094. >late one night.
  20095.  
  20096. I've been using the Desktop Textures collection for some time now, and that's
  20097. much more fun than the fairly boring patterns that come with 7.5. And when I
  20098. sent them the shareware fee, they mailed me a disk with some more patterns on
  20099. it!
  20100.  
  20101. > The crashes I get are so random and unreproducible, I
  20102. >don't know where to begin to stabilize things.
  20103.  
  20104. For each of the 7.5 installs that I've done, I've followed a procedure like
  20105. the following:
  20106.   * turn on the RAM disk. Make it big enough to hold a copy of the System,
  20107.     Finder, any necessary System Enabler, Disk First Aid and HD SC Setup
  20108.     (or an appropriate third-party alternative). If you're installing the
  20109.     new system from a CD-ROM, you'll also need the CD-ROM driver. If you're
  20110.     installing from an AppleShare server, you'll need the Chooser and
  20111.     AppleShare extension, plus the EtherTalk extension if you're on Ethernet.
  20112.   * Having copied these things to the RAM disk, set your startup disk to the
  20113.     RAM disk and restart.
  20114.   * Run Disk First Aid to check out your hard disk, and fix any problems it
  20115.     finds. Run HD SC Setup, or whatever your favourite hard disk formatting
  20116.     utility is, and make sure your drivers are up to date. If you've got a
  20117.     non-Apple hard disk, I have had good results with the FWB Hard Disk Toolkit.
  20118.   * Do the install of the new system. If you had any kind of flakiness before,
  20119.     it might be safest to do a clean install, rather than update your existing
  20120.     system.
  20121.   * Having finished the install, you can now switch your startup disk back
  20122.     to your hard disk, and restart. After that, you can trash the contents
  20123.     of the RAM disk and turn it off.
  20124.  
  20125. I know I have one colleague (with a Power Mac 6100/60) who was suffering
  20126. incredible random flakiness with his system, just like you report. The single
  20127. thing I did that cleared up most of his problems for him was to update his
  20128. hard disk driver.
  20129.  
  20130. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  20131. Computer Services Dept                     fax: +64-7-838-4066
  20132. University of Waikato            electric mail: ldo@waikato.ac.nz
  20133. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  20134. =========================================================================
  20135. Date:         Thu, 17 Nov 1994 14:49:15 -0500
  20136. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20137. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20138. From:         Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
  20139. Subject:      Re: OSAX source??
  20140.  
  20141. >I am trying to finish up my first OSAX, written in Think Pascal.
  20142. >I am having a bit of trouble however, with the compiler complaining that
  20143. >"THEPORT" is not defined.
  20144.  
  20145. If the linker complains that "ThePort" is not defined then you are probably
  20146. referencing system globals that are not directly available with the
  20147. libraries that you need to use for stand alone code like an OSAX. Innocent
  20148. loking variables like the patterns 'gray' or 'black' are compiled as
  20149. references to offsets from the global variable "ThePort" which is only
  20150. directly accessible from an application.
  20151.  
  20152. |-------------------------------------------------------------|
  20153. Steve Bryan                Internet: sbryan@maroon.tc.umn.edu
  20154. Sexton Software          CompuServe: 76545,527
  20155. Minneapolis, MN 55415           Fax: (612) 929-1799
  20156. =========================================================================
  20157. Date:         Thu, 17 Nov 1994 16:12:18 -0500
  20158. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20159. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20160. From:         Kiran Wagle <groo@NETCOM.COM>
  20161. Subject:      Re: Service Message
  20162.  
  20163. On 11/17/94, Steve Alex opined:
  20164.  
  20165. >> Supplementary information: Message was undeliverable to Microsoft mail.
  20166. >> confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  20167.  
  20168. > ...Going on to send the digest back to the list.
  20169.  
  20170. Digest software should refuse mail from addresses like "root" and
  20171. "postmaster" and in fact should send it BACK with a nasty note.  Never mind
  20172. runaway vacation programs that respond to themselves.
  20173.  
  20174. Furthermore, the mail program calls this kind of thing "service."
  20175.  
  20176. (I would also suggest that individuals should buy service from more
  20177. reliable providers.  I'd be pretty leery of putting anyone on a mailing
  20178. list I ran if their site had been known to spit out this kind of thing.)
  20179.  
  20180. ~ Kiran
  20181.  
  20182. --
  20183. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  20184. =========================================================================
  20185. Date:         Thu, 17 Nov 1994 16:12:28 -0500
  20186. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20187. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20188. From:         Kiran Wagle <groo@NETCOM.COM>
  20189. Subject:      Re: buyer's remorse
  20190.  
  20191. On 11/17/94, Dennis Whiteman opined:
  20192.  
  20193. > I'm seriously considering RAMDoubler, but I wonder if it
  20194. > won't introduce more problems than it solves.
  20195.  
  20196. RAM Doubler works very well until the following two things happen together.
  20197.  
  20198. (1) You're running MacTCP (which is a joke in itself)
  20199. (2) RD needs to store RAM to disk.
  20200.  
  20201. Then you risk a crash.  I've only had this happen ONCE since I installed
  20202. the ""040 VM Update" extension, tho.
  20203.  
  20204. I became suspicious of RD when I noticed MacsBug reporting I;d dropped into
  20205. the debugger allegedly inside procedures which belonged to programs that
  20206. weren't even running at the time.
  20207.  
  20208. ~ Kiran
  20209.  
  20210. --
  20211. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  20212. =========================================================================
  20213. Date:         Thu, 17 Nov 1994 16:53:02 -0500
  20214. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20215. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20216. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  20217. Subject:      Re: buyer's remorse
  20218. In-Reply-To:  <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
  20219.               NZ" at Nov 18, 94 09:48:00 am
  20220.  
  20221. --Lawrence D'Oliveiro wrote:
  20222. >
  20223. >Barry Chern <bchern@FREENET.COLUMBUS.OH.US> writes:
  20224. >
  20225. >>I'm assuming, anyway, from my one experiment with it that I _can't_ use
  20226. >>the Finder that came with 7.5 with my 7.1 System. It seemed to work at
  20227. >>first, but I couldn't move anything to or from the Desktop. Or, was that
  20228. >>just because my way of attempting to disable the old Finder without
  20229. >>actually throwing it away was to put it on the Desktop?
  20230. >
  20231. >I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
  20232.  
  20233.     As am I, since this is what I'm running on my 8100.
  20234.  
  20235. >What exactly happened when you tried moving stuff to/from the desktop?
  20236.  
  20237.     The problem of not being able to move items from one folder to the
  20238. next generally comes about when you don't have all the pieces of the
  20239. Drag Manager properly installed. Make sure you have the 1.1 version of
  20240. the Macintosh Drag and Drop extension installed. Your best bet is to
  20241. just get a fresh copy of the complete install from ftp.apple.com.
  20242.  
  20243. -Hades
  20244. =========================================================================
  20245. Date:         Thu, 17 Nov 1994 17:55:14 -0500
  20246. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20247. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20248. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  20249. Subject:      Re: BeyondMenus XTension
  20250.  
  20251. risch@ALUMNI.CS.COLORADO.EDU (Ralph Risch) says:
  20252. > Those of you that script QuarkXPress might want to
  20253. >  download Acrobyte's new BeyondMenus XTension - among
  20254. >  other things, BeyondMenus adds a 'Scripts' menu to
  20255. >  XPress which reflects the contents of a 'Scripts' folder
  20256. >  in the QuarkXPress folder. Placing a script in this
  20257. >  folder causes it to appear in the menu (you can create
  20258. >  hierarchies), and you can assign key equivalents to any
  20259. >  script.
  20260.  
  20261. Quark XTensions are very cool; Quark is very nice and gives you a great deal
  20262. of control over the program. I just wish I'd known about scripting THEN (when
  20263. I was writing them professionally) because I could have saved a lot of
  20264. effort. :D
  20265.  
  20266. Then again, none of the product's users had AppleScript....
  20267.  
  20268. _Deirdre
  20269. =========================================================================
  20270. Date:         Thu, 17 Nov 1994 17:55:22 -0500
  20271. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20272. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20273. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  20274. Subject:      Re: OSAX source??
  20275.  
  20276. While this is true, you can use GetPort to get the current GrafPort. Think C
  20277. allows you to use the Setup/Restore A4. Though I haven't tried it from an
  20278. osax, it works well enough from an LDEF.
  20279.  
  20280. You should not be initializing managers (e.g. InitGraf) btw.
  20281.  
  20282. _Deirdre
  20283.  
  20284. sbryan@MAROON.TC.UMN.EDU (Steve Bryan) says:
  20285. > If the linker complains that "ThePort" is not defined
  20286. >  then you are probably referencing system globals that
  20287. >  are not directly available with the libraries that you
  20288. >  need to use for stand alone code like an OSAX. Innocent
  20289. >  loking variables like the patterns 'gray' or 'black' are
  20290. >  compiled as references to offsets from the global
  20291. >  variable "ThePort" which is only directly accessible
  20292. >  from an application.
  20293. =========================================================================
  20294. Date:         Thu, 17 Nov 1994 17:55:35 -0500
  20295. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20296. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20297. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  20298. Subject:      Grr...More Scripting from C issues
  20299.  
  20300. I have this code fragment (below). I am reading in not a text resource, but a
  20301. glob saved to a text file (no styles, just plain old text). I read it in. It
  20302. compiles fine, but it won't execute. The text it's reading in is further down
  20303. -- and was copied and pasted to said text file from the AppleScript Editor,
  20304. so I know it's right.
  20305.  
  20306. I get an error -1753 (ScriptError) when I try OSAExecute. By the way, it's
  20307. launching the app, so I know the first document is indeed document 1.
  20308.  
  20309.   HLock(scriptText);
  20310.  
  20311.   myErr = AECreateDesc('TEXT', *scriptText, GetHandleSize(scriptText),
  20312. &sourceData);
  20313.  
  20314.   progressMsg("\pCompiling Scriptx");
  20315.   myErr = OSACompile(gScriptingComponent, &sourceData, modeFlags,
  20316. &ourScriptRef);
  20317.  
  20318.   // We've now compiled the script, so all that's left to do is execute it.
  20319.  
  20320.   progressMsg("\pAttempting to Run Scriptx");
  20321.   myErr = OSAExecute(gScriptingComponent, ourScriptRef, kOSANullScript,
  20322. kOSAModeNull,
  20323.      &scriptResult);
  20324.  
  20325.   HUnlock(scriptText);
  20326.  
  20327.  
  20328. Script text follows:
  20329.  
  20330. tell application "Scriptable Text Editor"
  20331.  activate
  20332.  paste
  20333.  select contents of document 1
  20334. end tell
  20335. =========================================================================
  20336. Date:         Fri, 18 Nov 1994 00:24:15 +0100
  20337. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20338. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20339. From:         WalrathW <walrathw@RFERL.ORG>
  20340. Subject:      Re: Users, Groups, Program Linking
  20341.  
  20342. > I am developing an application in which I need to create a specific user
  20343. > name, with password, and turn program linking on for that user.  I can't do
  20344. > it wit the Scriptable Finder directly, but I was wondering if there are any
  20345. > OSAXen out there which have this capability.  If not I can live with just
  20346. > opening the Users and Groups control panel for the user and prompting them
  20347. > to create the user whose privileges I need, but I'd like a cleaner way to
  20348. > do it, if possible.  Hard to do that without opening the system to all
  20349. > sorts of security holes, though.
  20350.  
  20351. Quinn the mighty "Eskimo!" has written the users and groups osaxen. I'm sure
  20352. they are probably in the gaea archive but (according to his readme) you can
  20353. also get them at:
  20354.  
  20355. ftp://redback.cs.uwa.edu.au/Others/Quinn/
  20356.  
  20357. > If anyone has heard of a public-key encryption OSAX for transferring secure
  20358. > information across PPC, I'd also like to know about that.
  20359.  
  20360. I haven't heard of anything like this.
  20361.  
  20362. __wayne
  20363. =========================================================================
  20364. Date:         Thu, 17 Nov 1994 11:29:00 CUT
  20365. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20366. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20367. From:         "Brendan T. Bank" <brendan@TEXTLITHO.NL>
  20368. Subject:      FMP AE open with password
  20369.  
  20370. I finaly got it, mayby it an FAQ but here it is anyway
  20371.  
  20372. Thit is the way to open a file from Userland Frontier with a password included
  20373.  
  20374. on open_pw (obj , password)
  20375.         return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
  20376. 'pPAS',password))}
  20377.  
  20378. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  20379. Brendan Bank       Postal Adress  E-Mail: brendan@textlitho.nl
  20380. Foto Factotum      P.O. Box 335         Voice: ..-31-35-881131
  20381. Oosterengweg 44    1200 AH Hilversum      Fax: ..-31-35-881199
  20382. 1212 KN Hilversum  The Netherlands    Private: ..-31-23-311065
  20383. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
  20384. =========================================================================
  20385. Date:         Thu, 17 Nov 1994 15:54:15 U
  20386. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20387. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20388. From:         Alexander Broquet <alexander_broquet1@QM.CLARIS.COM>
  20389. Subject:      PhotoFlash Resize Property
  20390.  
  20391.                       Subject:                              Time:  3:29 PM
  20392.   OFFICE MEMO         PhotoFlash Resize Property            Date:  11/17/94
  20393. I'm trying to use PhotoFlash to resize an image and constrain it to file
  20394. size.  I can get it to work manually but not via scripting.  Here's a
  20395. simplified version of the script...
  20396.  
  20397. tell application "PhotoFlash(tm)"
  20398.    activate
  20399.    make new image at beginning
  20400.    resize image of document 1 with file size constrained
  20401.    paste
  20402. end tell
  20403.  
  20404. Before I run the script, I copy a pict to the clipboard. What I would like
  20405. PhotoFlash to do is resize the image to fit the size of the image on the
  20406. clipboard. Instead I get the default image dimensions (1.78 by 1.78 inches).
  20407. I've tried various placements of the resize event with no luck.
  20408.  
  20409. Any ideas?
  20410. =========================================================================
  20411. Date:         Thu, 17 Nov 1994 17:00:10 -0700
  20412. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20413. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20414. From:         Michael Adams <micadams@BLUE.UNIVNORTHCO.EDU>
  20415. Subject:      Maybe Applescript Yes
  20416.  
  20417. I continued to fiddle with this script, trying another mail server that is
  20418. also a novell server, and finally got an error message that made more
  20419. sense. It says:
  20420.  
  20421. Error: Can't get <<class lhst>> of {class:stream status, bytes waiting:0,
  20422. connection status:connected, local host:"138.86.11.60",local
  20423. port:1569,remote host:"138.86.1.10",remote port:25}. -1728
  20424.  
  20425. First off, -1728 is not a Mac error according to easy errors 1.1. Next,
  20426. those parameters are the very params in the dictionary of the TCP/IP OSAX
  20427. under class:stream status. I was getting more excited by the minute (this
  20428. is my first real functional project in scripting).
  20429.  
  20430. So I'm left with this question. What is the <<class lhst>>? To what does
  20431. that refer?
  20432. It looks like everything else in the script was working up to that point.
  20433. The parameters mention correct addresses, connected status, etc.
  20434.  
  20435. Could this have something to do with the configuration of the novell
  20436. mailer? After all, the exact same script works great with a pop server
  20437. under AIX.
  20438.  
  20439. Any thoughts are appreciated.
  20440. =========================================================================
  20441. Date:         Thu, 17 Nov 1994 18:30:38 CST
  20442. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20443. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20444. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  20445. Subject:      Digest dumps
  20446.  
  20447. > >Report on your message to: /U=Unknown/@mr.wyeth.com
  20448. > >Reason: Unable to transfer; message formatting problem (1)
  20449. > >Diagnostic: Maximum time expired (5)
  20450. > >Supplementary information: Message was undeliverable to Microsoft mail.
  20451. Error
  20452. > > confirming server address %ATK-E-NBP_NAMNOTFOU, Name was not found
  20453. > >Arrival-date: Wed, 16 Nov 1994 23:00:23 EST
  20454. >
  20455. > ...Going on to send the digest back to the list.
  20456. >
  20457. > Am I the only one getting these? This is the second or third one I've
  20458. > received. Looks like someone putting their faith in Mr. Gates and
  20459. Micro$oft
  20460. > solving all the problems in the world :-)
  20461. >
  20462. > Steve Alex                                 (steve_alex@aidt.edu)
  20463.  
  20464. I'm getting the digest dumped in my mailbox too and I don't subscribe that
  20465. way. Got two of them today. Looks like there's some sort of problem.
  20466.  
  20467. Peter
  20468. =========================================================================
  20469. Date:         Thu, 17 Nov 1994 19:01:38 +0000
  20470. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20471. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20472. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  20473. Subject:      Re: Frontier Listserv scripts (was Listserv scripts for the Mac)
  20474.  
  20475. >At  7:23 AM 11/17/94 -0800, Dave Winer wrote:
  20476. >>Doug:
  20477. >>
  20478. >>It will work with Frontier Runtime just fine.
  20479. >>
  20480. >>And the scripts will be freely available. Just want to make a couple more
  20481. >>passes at cleaning them up so they're good sample code.
  20482. >>
  20483. >>If possible, pass this message onto the MACSCRPT mailing list.
  20484. >>
  20485. >>Dave
  20486.  
  20487. Very cool! Can't wait till they're ready!
  20488.  
  20489. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  20490.          www server: http://josaiah.sewanee.edu/          )
  20491. =========================================================================
  20492. Date:         Fri, 18 Nov 1994 14:50:00 +1300
  20493. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20494. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20495. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  20496.               NZ" <LDO@WAIKATO.AC.NZ>
  20497. Subject:      Re: Kee's show and tell
  20498.  
  20499. Kee Nethery <kee@KAGI.COM> relates:
  20500.  
  20501. [most of an interesting tale omitted]
  20502.  
  20503. >After getting frustrated with FaceSpan, I started using HyperCard as my
  20504. >User Interface builder. So most of my UI is in HyperTalk.
  20505.  
  20506. Funny, that. HyperCard doesn't get much respect these days. And, let's face
  20507. it, it was never purpose-built for anything in particular. But then, that
  20508. meant it was equally adaptable for all kinds of uses. And it still remains
  20509. one of the most hackable tools around: if it doesn't seem to have the
  20510. built-in capability to do something, you can usually work up some kind of
  20511. extension to add that capability. Hacking HyperCard is an activity with a
  20512. long, well-understood tradition.
  20513.  
  20514. Lawrence "Think of it as software plasticine" D'Oliveiro
  20515. =========================================================================
  20516. Date:         Thu, 17 Nov 1994 18:53:17 -0800
  20517. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20518. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20519. From:         "Klaus P. Fechner" <klaus@FORSYTHE.STANFORD.EDU>
  20520. Subject:      Re: buyer's remorse
  20521.  
  20522. >I'm assuming, anyway, from my one experiment with it that I _can't_ use
  20523. >the Finder that came with 7.5 with my 7.1 System. It seemed to work at
  20524. >first, but I couldn't move anything to or from the Desktop. Or, was that
  20525. >just because my way of attempting to disable the old Finder without
  20526. >actually throwing it away was to put it on the Desktop? Was that my
  20527. >mistake? Is there any way of using the Scriptable Finder as it came with
  20528. >7.5 with the old System.
  20529.  
  20530. Very interesting! Which machine are you using?
  20531.  
  20532. I am experiencing the exact same problem, except that I think is is caused
  20533. by the Drag&Drop extension (along with Finder 7.1.4 which I got from my 7.5
  20534. disk at work). I have run a Now StartupManager check on this and much to my
  20535. surprise it pointed out the Drag&Drop extension as the sole culprit. Just
  20536. because I don't completely trust all Now software, I tried it also with
  20537. absolutely no extensions other than D&D, and it still happened: I can't
  20538. drag anything off the desktop or onto a desktop item!
  20539.  
  20540. This is on a (don't laugh!) accelerated SE, running 7.1 for lack of an
  20541. upgrade of Connectix' Compact Virtual for 7.5 compatibility.
  20542.  
  20543. Anyone have any other ideas?
  20544.  
  20545. Sorry if this is a little off the mainstream of this list, but I'd love to
  20546. have D&D working so I can record some drags in the Finder ;-)
  20547.  
  20548. Klaus
  20549.  
  20550. Klaus P. Fechner, Palo Alto, CA, USA
  20551. =========================================================================
  20552. Date:         Fri, 18 Nov 1994 15:58:00 +1300
  20553. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20554. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20555. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  20556.               NZ" <LDO@WAIKATO.AC.NZ>
  20557. Subject:      Re: buyer's remorse
  20558.  
  20559. "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
  20560.  
  20561. >--Lawrence D'Oliveiro wrote:
  20562. >>
  20563. >>I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
  20564. >
  20565. >    As am I, since this is what I'm running on my 8100.
  20566.  
  20567. I doubt it. Power Macs need at least System 7.1.2, and they all come with
  20568. Finder 7.1.4 already.
  20569.  
  20570. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  20571. Computer Services Dept                     fax: +64-7-838-4066
  20572. University of Waikato            electric mail: ldo@waikato.ac.nz
  20573. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  20574. =========================================================================
  20575. Date:         Thu, 17 Nov 1994 21:48:16 +0000
  20576. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20577. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20578. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  20579. Subject:      Re: buyer's remorse
  20580.  
  20581. >(1) You're running MacTCP (which is a joke in itself)
  20582. >(2) RD needs to store RAM to disk.
  20583. Like I said before, I've been running RD for about 2 months now /with
  20584. MacTCP/ (1.1.1) and have not noticed anything strange related to it. You
  20585. say you were getting stack crawls for apps that weren't running...? Now
  20586. that is odd... How did you decide it was RD's fault?
  20587.  
  20588. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  20589.          www server: http://josaiah.sewanee.edu/          )
  20590. =========================================================================
  20591. Date:         Thu, 17 Nov 1994 21:54:07 -0600
  20592. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20593. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20594. From:         "Karl F. Bridges" <cfkfb@EIU.EDU>
  20595. Subject:      Re: BeyondMenus XTension
  20596. In-Reply-To:  <9411180342.AB16730@ux1.eiu.edu> from "Deirdre Saoirse-Savino" at
  20597.               Nov 17, 94 05:55:14 pm
  20598.  
  20599.         Does anyone know where this Xtension is available over FTP?
  20600.  
  20601. >
  20602. > risch@ALUMNI.CS.COLORADO.EDU (Ralph Risch) says:
  20603. > > Those of you that script QuarkXPress might want to
  20604. > >  download Acrobyte's new BeyondMenus XTension - among
  20605. > >  other things, BeyondMenus adds a 'Scripts' menu to
  20606. > >  XPress which reflects the contents of a 'Scripts' folder
  20607. > >  in the QuarkXPress folder. Placing a script in this
  20608. > >  folder causes it to appear in the menu (you can create
  20609. > >  hierarchies), and you can assign key equivalents to any
  20610. > >  script.
  20611. >
  20612. > Quark XTensions are very cool; Quark is very nice and gives you a great deal
  20613. > of control over the program. I just wish I'd known about scripting THEN (when
  20614. > I was writing them professionally) because I could have saved a lot of
  20615. > effort. :D
  20616. >
  20617. > Then again, none of the product's users had AppleScript....
  20618. >
  20619. > _Deirdre
  20620. >
  20621.  
  20622.  
  20623. --
  20624.  
  20625.  
  20626. *****************************************************************************
  20627. Karl Bridges
  20628. cfkfb@eiu.edu
  20629. *****************************************************************************
  20630. =========================================================================
  20631. Date:         Fri, 18 Nov 1994 16:54:00 +1300
  20632. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20633. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20634. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  20635.               NZ" <LDO@WAIKATO.AC.NZ>
  20636. Subject:      Re: Grr...More Scripting from C issues
  20637.  
  20638. Deirdre Saoirse-Savino <Deeny3@AOL.COM> writes:
  20639.  
  20640. >I get an error -1753 (ScriptError) when I try OSAExecute.
  20641.  
  20642. Did you try calling OSAScriptError, to find out what the error was?
  20643.  
  20644. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  20645. Computer Services Dept                     fax: +64-7-838-4066
  20646. University of Waikato            electric mail: ldo@waikato.ac.nz
  20647. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  20648. =========================================================================
  20649. Date:         Thu, 17 Nov 1994 23:45:50 EST
  20650. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20651. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20652. From:         Mike Alexander <Mike.Alexander@UMICH.EDU>
  20653. Subject:      Re: OSAX source??
  20654.  
  20655. >While this is true, you can use GetPort to get the current GrafPort. Think C
  20656. >allows you to use the Setup/Restore A4. Though I haven't tried it from an
  20657. >osax, it works well enough from an LDEF.
  20658.  
  20659. Yes, but be careful.  Depending on who is calling you, there may not be a
  20660. current GrafPort.  It should be safe enough from an LDEF, but perhaps not
  20661. from an osax if it is called by some background process when the machine is
  20662. in some strange state.  Osax's may be ok, but I've seen examples in other
  20663. code (XTND translators, for example) where they tried to use a non-existant
  20664. current GrafPort and crashed.
  20665.  
  20666. Mike Alexander              Internet:       mta@umich.edu
  20667. University of Michigan      America Online: MAlexander
  20668. ITD - Research Systems      AppleLink:      UMICH
  20669. =========================================================================
  20670. Date:         Thu, 17 Nov 1994 22:49:27 +0000
  20671. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20672. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20673. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  20674. Subject:      Re: Users, Groups, Program Linking
  20675.  
  20676. >> If anyone has heard of a public-key encryption OSAX for transferring secure
  20677. >> information across PPC, I'd also like to know about that.
  20678. >
  20679. >I haven't heard of anything like this.
  20680.  
  20681.  
  20682. If it were bAsed on the RSA ("MacPGP") encryption scheme, methinks it would
  20683. be quite difficult to compile and still be usable. Maybe you could use
  20684. MacPGP 2.6ui which is scriptable to encrypt something and then transfer it,
  20685. later decoding it, but that seems sort of tedious...
  20686.  
  20687. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  20688.          www server: http://josaiah.sewanee.edu/          )
  20689. =========================================================================
  20690. Date:         Thu, 17 Nov 1994 21:42:00 -0800
  20691. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20692. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20693. From:         { brad brace } <bbrace@NETCOM.COM>
  20694. Subject:      Microphone script
  20695. In-Reply-To:  <199411180509.VAA00871@mail2.netcom.com>
  20696.  
  20697. Just thanks
  20698. For the suggestions offered
  20699.  
  20700. --
  20701.    { brad brace }                               bbrace@netcom.com
  20702.    ftp://ftp.netcom.com/pub/bbrace/bbrace.html    ~finger for pgp
  20703.                                                                __
  20704. =========================================================================
  20705. Date:         Thu, 17 Nov 1994 23:37:13 -0500
  20706. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20707. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20708. From:         David Jokinen <ground@INTERLINK.NET>
  20709. Subject:      Character mappings used here?
  20710.  
  20711. > It doesn't compile because you haven't use the chevron characers.
  20712. > To create the chevron characters =AB=BB, use option-\ and shift-option-\.
  20713.  
  20714. What message decoding option will allow me to see the special characters used
  20715. by some members of this list? I'm running the Mail*Link PT/INET PowerTalk
  20716. gateway with the default body text translation, namely: RFC 822->987 USA.
  20717.  
  20718. --David
  20719. ___________________________________________
  20720. David Jokinen          ground@interlink.net
  20721. Ground Zero Software   Montreal, Quebec, CA
  20722. =========================================================================
  20723. Date:         Fri, 18 Nov 1994 00:28:17 -0500
  20724. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20725. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20726. From:         David Jokinen <ground@INTERLINK.NET>
  20727. Subject:      Re: Kee's show and tell & FaceSpan
  20728.  
  20729. Kee Nethery wrote:
  20730. > FaceSpan was the first [roadkill]. It was just too painful to get it
  20731. > to do what I wanted. Think of it as an abandoned card on the highway.
  20732. > It limps along if you baby it but after a while it's faster to
  20733. > hitchhike and catch another ride.
  20734.  
  20735. Thanks, Kee, for this enlightening peek behind the scenes of Peter Lewis'
  20736. Robotic Shareware Empire [a well-deserved success].
  20737.  
  20738. I love FaceSpan, but after working with it in depth, I think Apple and SDU
  20739. made a big mistake bundling this thing with the AppleScript Developers Kit.
  20740. It's a classic case of bad product positioning.
  20741.  
  20742. FaceSpan is a fabulous tool for mocking up user interfaces for "real"
  20743. software. I've used it to design several C++ applications, and it's come
  20744. through for me as an efficient UI communication tool. Everyone gets the
  20745. picture, before you start coding. The AppleScript support is just a means to
  20746. this end. FaceSpan apps are of no value as software.
  20747.  
  20748. I don't know who got it into their head that everyone who used AppleScript
  20749. would need to use FaceSpan, but I'm sorry to say they were wrong. It's just
  20750. hurting a great product, because people are missing the point of it. SDU
  20751. should take it back, hike the price, and reposition it as the premier UI
  20752. design tool. Right now, it's just wasting our time.
  20753.  
  20754. --David
  20755. ___________________________________________
  20756. David Jokinen          ground@interlink.net
  20757. Ground Zero Software   Montreal, Quebec, CA
  20758. =========================================================================
  20759. Date:         Fri, 18 Nov 1994 01:24:48 -0500
  20760. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20761. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20762. From:         David Jokinen <ground@INTERLINK.NET>
  20763. Subject:      Re(2): OSAX source??
  20764.  
  20765. Tangent Alert! Actual uncensored C code below!
  20766.  
  20767. Steve Bryan says:
  20768. > If the linker complains that "ThePort" is not defined
  20769. > then you are probably referencing system globals that
  20770. > are not directly available with the libraries that you
  20771. > need to use for stand alone code like an OSAX. Innocent
  20772. > loking variables like the patterns 'gray' or 'black' are
  20773. > compiled as references to offsets from the global
  20774. > variable "ThePort" which is only directly accessible
  20775. > from an application.
  20776.  
  20777. Deirdre says:
  20778. > While this is true, you can use GetPort to get the current GrafPort.
  20779. > Think C allows you to use the Setup/Restore A4. Though I haven't
  20780. > tried it from an osax, it works well enough from an LDEF.
  20781.  
  20782. Lawrence D'Oliveiro says:
  20783. > Bad, bad. "thePort" is a QuickDraw global, which lives in the A5
  20784. > world. Only applications have their own A5 worlds; your osax does
  20785. > not. Thus, it cannot access QuickDraw globals in the conventional
  20786. > way, using names like "thePort".
  20787.  
  20788. Yes, watch out! SetUpA4/RestoreA4 will let you GetPort, but you won't be
  20789. getting the "real" thePort. You'll get a bogus copy that's part of your code
  20790. resource. Everything compiles just fine, but nothing will work. You'll be
  20791. debugging until next Christmas. Here's how I do it:
  20792.  
  20793. /* Sorry for C notation. Could someone please translate to Pascal for Steve?
  20794. */
  20795.  
  20796. #include <SetUpA4.h>    // warning: generates code
  20797.  
  20798. /* Entry point of your code resource */
  20799.  
  20800. main() {
  20801.         GrafPtr theRealPort;    // treat this as a substitute for thePort
  20802.  
  20803.         RememberA0();   // save a pointer to your code resource for SetUpA4()
  20804.         SetUpA4();      // prepare access to your globals
  20805.         theRealPort = **(GrafPtr **)CurrentA5;  // Get your caller's thePort
  20806.  
  20807.         // do your thePort stuff using theRealPort instead
  20808.  
  20809.         RestoreA4();    // avoid confusing your caller
  20810. }
  20811.  
  20812. If anyone is interested, this stuff is pretty well documented in the THINK C
  20813. manuals. I have no idea whether this technique will be valid with your
  20814. particular Pascal compiler, Steve. Good luck!
  20815.  
  20816. --David
  20817. ___________________________________________
  20818. David Jokinen          ground@interlink.net
  20819. Ground Zero Software   Montreal, Quebec, CA
  20820. =========================================================================
  20821. Date:         Fri, 18 Nov 1994 01:35:37 -0500
  20822. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20823. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20824. From:         David Jokinen <ground@INTERLINK.NET>
  20825. Subject:      Re(2): Users, Groups, Program Linking
  20826.  
  20827. Wayne wrote:
  20828. > Quinn the mighty "Eskimo!" has written the users and groups osaxen.
  20829. > I'm sure they are probably in the gaea archive but (according to his
  20830. > readme) you can also get them at:
  20831. >
  20832. > ftp://redback.cs.uwa.edu.au/Others/Quinn/
  20833.  
  20834. Speaking of which, does anyone know where I can reach Greg T. Quinn? The only
  20835. address he ever published was gtq1@cornell.edu, but that's a black hole. I've
  20836. been trying for months to send him a check, but where?
  20837.  
  20838. --David
  20839. ___________________________________________
  20840. David Jokinen          ground@interlink.net
  20841. Ground Zero Software   Montreal, Quebec, CA
  20842. =========================================================================
  20843. Date:         Thu, 17 Nov 1994 22:45:21 -0800
  20844. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20845. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20846. From:         Kee Nethery <kee@KAGI.COM>
  20847. Subject:      Re: Kee's show and tell
  20848.  
  20849. >What exactly did you find troublesome about FaceSpan?
  20850.  
  20851. Had to create a prefs file to store configuration data into. The ability of
  20852. HyperCard to remember stuff is quite nice. I needed to do a bunch of text
  20853. processing and I personally found the combination of AppleScript and no
  20854. place to store variables just too much. But the real kicker was what seemed
  20855. to be some sort of memory leak. It was a long time ago (in finger strokes)
  20856. that I attempted to bend FaceSpan to do my bidding. The creation cycle,
  20857. seemed slow and the debugging was non-existent.
  20858.  
  20859. Other than that, sure seemed like a good idea, but I find HyperCard more
  20860. productive for my needs.
  20861.  
  20862. Kee Nethery
  20863. =========================================================================
  20864. Date:         Fri, 18 Nov 1994 00:58:01 +0000
  20865. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20866. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20867. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  20868. Subject:      audio CD and GTQLib
  20869.  
  20870. I'm having one inane problem with the GTQLib and writing a script to
  20871. control my CD drive.
  20872. Here's part of the script:
  20873. .....            if button returned of result is "Goto Track..." then
  20874. .....       display dialog "Which track number?" default answer "" buttons
  20875. {"OK"} default
  20876. .....            button "OK"
  20877. .....   set theTrack to text returned of result
  20878. .....   play audio CD starting with track (theTrack as integer)
  20879.                 end if
  20880.  
  20881. This is the third in a string of if then else statements. All works fine,
  20882. unless the number I put into the dialog is 8 or over. I get a "Parameter
  20883. error" surrounding the line starting with "play..." Anyone have any ideas?
  20884. And yes, I have looked at both the dictionary and the docs, neither of
  20885. which say anything about a limit to the number for specifying a track.
  20886. TIA,
  20887.  
  20888. -J
  20889.  
  20890. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  20891.          www server: http://josaiah.sewanee.edu/          )
  20892. =========================================================================
  20893. Date:         Fri, 18 Nov 1994 01:01:39 +0000
  20894. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20895. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20896. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  20897. Subject:      Re: audio CD and GTQLib
  20898.  
  20899. Sorry to double post, but I just remembered the other possible problem. One
  20900. of the ifs is an eject command and as many of you may know, if you tartup
  20901. with a CD in and have filesharing on, you cannot eject the disk. When this
  20902. happens, I get a nice error telling me "File busy", which is fine for me,
  20903. but it also puts up the "OK" and "Edit" buttons. I will at some point be
  20904. giving this little applet away to friends who are not scripters, and do not
  20905. have the SE. How can I put an "on error" type of dialog instead of this
  20906. built in one?
  20907.  
  20908. Again, TIA,
  20909. -J
  20910.  
  20911. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  20912.          www server: http://josaiah.sewanee.edu/          )
  20913. =========================================================================
  20914. Date:         Thu, 17 Nov 1994 23:47:48 -0800
  20915. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20916. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20917. From:         Jon Pugh <jonpugh@NETCOM.COM>
  20918. Subject:      Re: MACSCRPT Digest - 16 Nov 1994 to 17 Nov 1994
  20919.  
  20920. >Does anyone know of an osax that allows you to do 60 minutes
  20921. >of work in 30 minutes?
  20922.  
  20923. I've been writing one, but it always seems to be 2 weeks away from working.
  20924.  
  20925. Jon
  20926. =========================================================================
  20927. Date:         Thu, 17 Nov 1994 23:47:50 -0800
  20928. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20929. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20930. From:         Jon Pugh <jonpugh@NETCOM.COM>
  20931. Subject:      Re: Grr...More Scripting from C issues
  20932.  
  20933. Deirdre Saoirse-Savino <Deeny3@AOL.COM> wrote:
  20934. >
  20935. >I have this code fragment (below). I am reading in not a text resource, but a
  20936. >glob saved to a text file (no styles, just plain old text). I read it in. It
  20937. >compiles fine, but it won't execute. The text it's reading in is further down
  20938. >-- and was copied and pasted to said text file from the AppleScript Editor,
  20939. >so I know it's right.
  20940. >
  20941. >I get an error -1753 (ScriptError) when I try OSAExecute. By the way, it's
  20942. >launching the app, so I know the first document is indeed document 1.
  20943.  
  20944. You need more code, as outlined later, but here's an optimization to the
  20945. stuff you posted.
  20946.  
  20947.     HLock(scriptText);
  20948.     myErr = AECreateDesc('TEXT', *scriptText, GetHandleSize(scriptText),
  20949.             &sourceData);
  20950.     HUnlock(scriptText);    // Moved here because the text is copied by
  20951.                             // AECreateDesc.  This is probably the biggest
  20952.                             // problem with the AE manager IMHO.  It always
  20953.                             // copies data.
  20954.  
  20955. The single most important thing you can do for your own stability is to
  20956. implement the OSASendProc.  When you open your component instance you
  20957. assign a procedure that gets called instead of AESend when the script is
  20958. running.  In it, you call AESend.  You add the AEIdleProc parameter and all
  20959. of a sudden you get all the events you were expecting to get during script
  20960. execution.  If you implement the OSAActiveProc too, you'll get idle calls
  20961. during repeat loops and such.  Necessary stuff to run scripts well.
  20962.  
  20963. Lawrence's suggestion was right on though.  -1753 is the "I got an error"
  20964. error.  You have to call OSAScriptError repeatedly to get the various parts
  20965. of the script's error message.  Generally you get the number and the
  20966. message.  You can also get the offending object (if there was one returned)
  20967. and the error range (where in the text the error was, for hiliting), as
  20968. well as a couple of other less used items.
  20969.  
  20970. Your script, while simple, could easily generate errors.  I found that if I
  20971. ran it, closed the window, but not the program, and ran it again, it
  20972. errored because there was no open window.  I'll bet that's the problem.
  20973. Beef up your error handling, because you'll make more errors and you'll
  20974. want to know where they are.  ;)
  20975.  
  20976. Jon
  20977. =========================================================================
  20978. Date:         Thu, 17 Nov 1994 23:51:37 -0800
  20979. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20980. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  20981. From:         Kee Nethery <kee@KAGI.COM>
  20982. Subject:      buttons blinking
  20983.  
  20984. I took computer programming and slide rules between 5th and 6th grade. We
  20985. had a teletype with paper tape going to a mainframe downtown. I could read
  20986. the dots on the tape. Rubout was my friend.
  20987.  
  20988. Now I occasionally play with single chip micros and I build circuits and
  20989. program in assembly (C is for wimps). An blinking lights are about the only
  20990. debugging tools available on a small single chip micro.
  20991.  
  20992. I like blinking lights, they are my friend. :-)
  20993.  
  20994. Kee
  20995.  
  20996. _______________________________________________________________
  20997. Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
  20998. =========================================================================
  20999. Date:         Fri, 18 Nov 1994 19:22:15 +1100
  21000. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21001. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21002. From:         Jeremy Peter Howard <jhoward@ARIEL.UCS.UNIMELB.EDU.AU>
  21003. Subject:      Re: buyer's remorse
  21004. In-Reply-To:  <199411180759.SAA13910@ariel.ucs.unimelb.EDU.AU> from "Klaus P.
  21005.               Fechner" at Nov 17, 94 06:53:17 pm
  21006.  
  21007. >
  21008. > >I'm assuming, anyway, from my one experiment with it that I _can't_ use
  21009. > >the Finder that came with 7.5 with my 7.1 System. It seemed to work at
  21010. > >first, but I couldn't move anything to or from the Desktop. Or, was that
  21011. > >just because my way of attempting to disable the old Finder without
  21012. > >actually throwing it away was to put it on the Desktop? Was that my
  21013. > >mistake? Is there any way of using the Scriptable Finder as it came with
  21014. > >7.5 with the old System.
  21015. >
  21016. > Very interesting! Which machine are you using?
  21017. >
  21018. > I am experiencing the exact same problem, except that I think is is caused
  21019. > by the Drag&Drop extension (along with Finder 7.1.4 which I got from my 7.5
  21020. > disk at work). I have run a Now StartupManager check on this and much to my
  21021. > surprise it pointed out the Drag&Drop extension as the sole culprit. Just
  21022. > because I don't completely trust all Now software, I tried it also with
  21023. > absolutely no extensions other than D&D, and it still happened: I can't
  21024. > drag anything off the desktop or onto a desktop item!
  21025. >
  21026. > This is on a (don't laugh!) accelerated SE, running 7.1 for lack of an
  21027. > upgrade of Connectix' Compact Virtual for 7.5 compatibility.
  21028. >
  21029. > Anyone have any other ideas?
  21030.  
  21031. You need an extension called the 'Dragging Enabler' which is on
  21032. ftp.apple.com.
  21033.  
  21034.  
  21035. /==============================\
  21036. | Jeremy P. Howard              |       "Logic must take care of itself."
  21037. | jhoward@ariel.unimelb.edu.au  |        Ludwig Wittgenstein
  21038. \==============================/         Tractatus Logico-Philisophicus
  21039. =========================================================================
  21040. Date:         Fri, 18 Nov 1994 10:06:14 +0100
  21041. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21042. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21043. From:         Ronald Leenes <r.e.leenes@BSK.UTWENTE.NL>
  21044. Subject:      Eudora Announcer script (yet again)
  21045.  
  21046. In reply to David Messina's question about our (Roel Vertegaal and mine)
  21047. Eudora announcer the following.
  21048. The trouble you run into is the fact that Eudora's scripting dictionary has
  21049. changed in 2.1 (in comparison to 1.4 (freeware) and 2.0? commercial).
  21050. We wrote the script for Eudora 1.4. It won't work with Eudora 2.1 without
  21051. changes.
  21052. As a matter of fact I've spend some time 'upgrading' the announcer to work
  21053. with Eudora 1.5 (should have the same dict as 2.1) on A Pmac 6100 and I
  21054. have to admit I can't get it working properly.
  21055.  
  21056. If you want to get it running you will indeed have to insert the following:
  21057.  
  21058. tell application "Eudora 2.1"
  21059.     notify alias "theDisk:theFolder:Eudora Announcer 1.0" when mail arrives
  21060. end tell
  21061.  
  21062. as mentioned by
  21063. David Lewis
  21064.  
  21065. In the announcer you will find
  21066. on notice (theNewMessages)
  21067.  
  21068. that should be changed to:
  21069. on notify theEvent theNewMessages
  21070.  
  21071. or something. As said before, I can't get it running.
  21072.  
  21073.  
  21074.  
  21075.  
  21076. ---
  21077. Ronald E. Leenes              University of Twente
  21078. r.e.leenes@bsk.utwente.nl     Dept. of Public Administration
  21079.                               and  Public Policy
  21080. Phone:    X-31 53 894231      P.O. Box 217, 7500 AE Enschede
  21081.                               the Netherlands
  21082. ---
  21083. =========================================================================
  21084. Date:         Fri, 18 Nov 1994 06:24:41 -0500
  21085. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21086. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21087. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  21088. Subject:      buyer's remorse
  21089. In-Reply-To:  <199411180911.EAA25940@acme.freenet.columbus.oh.us>
  21090.  
  21091. Thanks to everyone that mentioned it, but as I should have pointed out
  21092. at the beginning of my original post I had already heeded all of the
  21093. advice about updating drivers and doing a clean install. I installed 7.5
  21094. in a new partition that had never had a system on it in its life.
  21095.  
  21096. Yes, I have tried to reinstate about half of my extensions. Maybe there
  21097. would be no problems without them. On the other hand, if I went back to my
  21098. old system everything would be running fine, I could be doing all those
  21099. things I wanted at once and not be spending my time trying to figure out
  21100. just what else in the set-up doesn't work any more. Yet I haven't gone
  21101. back to the old System yet, for some reason. I must be a victim of peer
  21102. pressure. If all the most respectable people on the net think it's more
  21103. stable, there must be _something_ to it.
  21104. =========================================================================
  21105. Date:         Fri, 18 Nov 1994 07:39:07 -0500
  21106. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21107. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21108. From:         "Kevin A. Gemeinhart" <kg14+@ANDREW.CMU.EDU>
  21109. Subject:      Re(3): Users, Groups, Program Linking
  21110. In-Reply-To:  <Added.Qin7_hW00UddRlvU4a@andrew.cmu.edu>
  21111.  
  21112. >Speaking of which, does anyone know where I can reach Greg T. Quinn? The only
  21113. >address he ever published was gtq1@cornell.edu, but that's a black hole. I've
  21114. >been trying for months to send him a check, but where?
  21115.  
  21116. Try this address:
  21117.  
  21118. gregq@gordian.com
  21119.  
  21120. -Kevin
  21121. =========================================================================
  21122. Date:         Fri, 18 Nov 1994 09:26:34 -0500
  21123. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21124. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21125. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  21126. Subject:      Re: Users, Groups, Program Linking
  21127.  
  21128. Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU (Kyraden) says:
  21129. >>If it were bAsed on the RSA ("MacPGP") encryption scheme, methinks it would
  21130. be quite difficult to compile and still be usable. Maybe you could use
  21131. MacPGP 2.6ui which is scriptable to encrypt something and then transfer it,
  21132. later decoding it, but that seems sort of tedious...<<
  21133.  
  21134. Ummm....there's a MacPGP 2.6? Last I heard there was no PGP for the Mac above
  21135. 2.3. Where do I get same? (Email preferred; AOL's ftp is still in the funky
  21136. stage)
  21137.  
  21138. _Deirdre
  21139. =========================================================================
  21140. Date:         Fri, 18 Nov 1994 09:26:39 -0500
  21141. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21142. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21143. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  21144. Subject:      Re: OSAX source??
  21145.  
  21146. This is a good point. One of the stickiest and most persistent bugs (and one
  21147. of the hardest to find/solve) in the last C++ project I worked on was one
  21148. class deleting the current grafport that another class was using keeping as a
  21149. saved grafport. In any case, before using anything grafport oriented, it's a
  21150. good idea to check if there is one and that you have the right one.
  21151.  
  21152. _Deirdre
  21153.  
  21154. Mike.Alexander@UMICH.EDU (Mike Alexander) says:
  21155. > Yes, but be careful.  Depending on who is calling you, there may not be a
  21156. > current GrafPort.  It should be safe enough from an LDEF, but perhaps not
  21157. > from an osax if it is called by some background process when the machine is
  21158. > in some strange state.  Osax's may be ok, but I've seen examples in other
  21159. > code (XTND translators, for example) where they tried to use a non-existant
  21160. > current GrafPort and crashed.
  21161. =========================================================================
  21162. Date:         Fri, 18 Nov 1994 09:26:45 -0500
  21163. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21164. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21165. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  21166. Subject:      Re: Grr...More Scripting from C issues
  21167.  
  21168. Lawrence D'Oliveiro asks:
  21169. >>Did you try calling OSAScriptError, to find out what the error was?
  21170.  
  21171. Well, I was working on that. This is the second time I've had this gotcha
  21172. (but the first time was two years ago, so it took me a while to find what
  21173. happened last time) -- I set the SIZE flags, but the compiler re-set them,
  21174. clobbering my values. AppleScript also seems to require the
  21175. remoteHighLevelEvent flag being set, which I can't remember reading anywhere.
  21176. I don't set it as a matter of course.
  21177.  
  21178. I also had to change the modeFlags to include the canInteract.
  21179.  
  21180. In any case, it does work now. Yay!
  21181.  
  21182. _Deirdre
  21183. =========================================================================
  21184. Date:         Fri, 18 Nov 1994 10:47:13 -0500
  21185. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21186. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21187. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  21188. Subject:      Re: buyer's remorse
  21189. In-Reply-To:  <no.id> from "Lawrence D'Oliveiro, Waikato University, Hamilton,
  21190.               NZ" at Nov 18, 94 03:58:00 pm
  21191.  
  21192. --Lawrence D'Oliveiro wrote:
  21193. >
  21194. >"Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
  21195. >
  21196. >>--Lawrence D'Oliveiro wrote:
  21197. >>>
  21198. >>>I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
  21199. >>
  21200. >>    As am I, since this is what I'm running on my 8100.
  21201. >
  21202. >I doubt it. Power Macs need at least System 7.1.2, and they all come with
  21203. >Finder 7.1.4 already.
  21204.  
  21205.     True, but I was being a little less specific with the version
  21206. numbers than you are. To me, System 7.1 encompases both 7.1.1 and 7.1.2
  21207. because the really are the same overall system. I was also running 7.1.3
  21208. and the scriptable Finder when my 8100 was still a Q800.
  21209.  
  21210. -Hades
  21211. =========================================================================
  21212. Date:         Fri, 18 Nov 1994 10:50:54 -0500
  21213. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21214. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21215. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  21216. Subject:      Re: buyer's remorse
  21217. In-Reply-To:  <no.id> from "Jeremy Peter Howard" at Nov 18, 94 07:22:15 pm
  21218.  
  21219. --Jeremy Peter Howard wrote:
  21220. >
  21221. >You need an extension called the 'Dragging Enabler' which is on
  21222. >ftp.apple.com.
  21223.  
  21224.     Yup. And you can find it at this URL:
  21225.  
  21226. ftp://ftp.apple.com/dts/mac/sys.soft/extensions/macintosh-drag-and-drop-1-1.hqx
  21227.  
  21228. -Hades
  21229. =========================================================================
  21230. Date:         Fri, 18 Nov 1994 17:05:07 -0600
  21231. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21232. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21233. From:         Magnus Olofsson <magnus.olofsson@GOT.WMDATA.SE>
  21234. Subject:      Re: buttons blinking
  21235.  
  21236. >I took computer programming and slide rules between 5th and 6th grade. We
  21237. >had a teletype with paper tape going to a mainframe downtown. I could read
  21238. >the dots on the tape. Rubout was my friend.
  21239. >
  21240. >Now I occasionally play with single chip micros and I build circuits and
  21241. >program in assembly (C is for wimps). An blinking lights are about the only
  21242. >debugging tools available on a small single chip micro.
  21243. >
  21244. >I like blinking lights, they are my friend. :-)
  21245. >
  21246. >Kee
  21247. >
  21248. >_______________________________________________________________
  21249. >Kagi Shareware, 1442-A Walnut #392, Berkeley, CA 94709-1405 USA
  21250. >
  21251. >
  21252.  
  21253. I didn't know that Fred Flintstone was hooked up to Internet.
  21254.  
  21255. MON
  21256. =========================================================================
  21257. Date:         Fri, 18 Nov 1994 13:01:33 -0400
  21258. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21259. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21260. From:         Bill Hutten <bhutten@FOX.NSTN.NS.CA>
  21261. Subject:      Re: Listserv scripts on the Mac
  21262.  
  21263. >Hello,
  21264. >
  21265. >Someone recently asked on the info-mac list about being able to provide
  21266. >listserv email list management and processing on the Mac.  While I haven't
  21267. >seen anything to do this (at least in shareware), it occurred to me that
  21268. >with the latest 1.0b8 version of MailShare, a freeware POP email server for
  21269. >the mac, that this might be possible through some scripting, so I thought I
  21270. >would run this by you and see if anyone has worked on this.
  21271.  
  21272.  
  21273. I've done something similar. Basically I have an AppleScript that connects
  21274. to MailShare through Eudora. The AppleScript then steps through the
  21275. messages in the Eudora inBox, and takes in 'Subcribe" or "unsubcribe"
  21276. messages and moves that data into/out of a FileMaker pro database. Then all
  21277. the other messages in the Eudora Inbox are sent to each of the users in the
  21278. FileMakerPro database.
  21279.  
  21280. voila, mailing list on a Mac!  I'd release it but I wrote it under
  21281. contract....they may want to release it as shareware.......
  21282.  
  21283.  
  21284. - bill
  21285.  
  21286.  
  21287. | Bill Hutten - bhutten@fox.nstn.ns.ca
  21288. | 6411 Cloverdale Rd. Halifax, NS Canada B3L 2N6   (902) 453 2482
  21289. |     "I've been your dog ever since I knowed your name." - Son House
  21290. =========================================================================
  21291. Date:         Fri, 18 Nov 1994 08:59:34 -0800
  21292. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21293. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21294. From:         Kee Nethery <kee@KAGI.COM>
  21295. Subject:      Re: buttons blinking
  21296.  
  21297. Aaaarrrgggg :-o  Sorry this was supposed to just go to Jon Pugh. I used one
  21298. of his postings to MacScrpt to get his email address. Obviously I replied
  21299. to the list rather than to Jon. It was late night. Sorry about that folks.
  21300. Kee Nethery
  21301. =========================================================================
  21302. Date:         Fri, 18 Nov 1994 09:04:55 U
  21303. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21304. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21305. From:         Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV>
  21306. Subject:      HyperCard (was- Kee's show.
  21307.  
  21308.                        Subject:                               Time:8:55 AM
  21309.   OFFICE MEMO          HyperCard (was: Kee's show...)         Date:11/18/94
  21310.  
  21311. Lawrence "Think of it as software plasticine" D'Oliveiro sez:
  21312.  > HyperCard doesn't get much respect these days...And it still remains
  21313.  > one of the most hackable tools around...Hacking HyperCard is an activity
  21314. with a
  21315.  > long, well-understood tradition.
  21316.  
  21317. I hope Apple realizes that.  I have used HyperCard since it was in Beta
  21318. testing, and while I wouldn't want to try and teach someone how to use
  21319. HyperCard today, I think there are a whole load of people like me who secretly
  21320. _love_ HyperCard.  Recently it seems if you mention that you use HyperCard,
  21321. people snicker, and look down their nose at you.
  21322.  
  21323. When was the last time you got to feel so comfortable with a piece of
  21324. software?  There is not another application on any of my hard disks that I
  21325. feel as "at home" with as HyperCard.  The problem is that this "comfortable"
  21326. feeling is really hard to quantify.  I just hope Apple takes the effort to
  21327. quantify it so that the bean-counters don't get to my beloved HyperCard.
  21328.  
  21329. - Christian (stepping off of soapbox) Jacobsen
  21330. jacobsen@george.arc.nasa.gov
  21331.  
  21332. ** These opinions are MINEMINEMINEMINE!!!  (But I will sell 'em for cheap!) **
  21333. =========================================================================
  21334. Date:         Fri, 18 Nov 1994 09:26:47 -0800
  21335. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21336. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21337. From:         Jerry Ballard <gqb@FARALLON.COM>
  21338. Subject:      Re: HyperCard (was- Kee's show.
  21339.  
  21340. >>I think there are a whole load of people like me who secretly
  21341. >>_love_ HyperCard.
  21342.  
  21343. I make no secrets about it. If I have anything that needs to be done FAST,
  21344. whether it involves MS Mail, text parsing, timers, flat-file DB work... the
  21345. list is endless, I immediately turn to HCard.
  21346. IMHO, its still THE finest end user development environment ever written.
  21347. I still maintain that AppleScript should have been implemented as a language
  21348. extension to HCard, with the option to save 'code-only' apps & scripts.
  21349.  
  21350. But that water has long since passed under the bridge.
  21351. =========================================================================
  21352. Date:         Fri, 18 Nov 1994 09:43:50 U
  21353. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21354. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21355. From:         "Adams.Richard" <adams#d#richard@SSDGWY.MDC.COM>
  21356. Subject:      XCMD Shell won't launch
  21357.  
  21358. I can't get XCMD Shell v 0.1b3 to launch from AppleScript.  Try as I might, I
  21359. just get a timeout error.   I sent an email to the author (Sean Hummel) and
  21360. have gotten no reply.  Also tried getting to his www software page, but it
  21361. seems to be gone or protected.
  21362.  
  21363. Anyone had any luck getting this to work?
  21364.  
  21365. Richard Adams
  21366. MDAW ISSA
  21367. =========================================================================
  21368. Date:         Fri, 18 Nov 1994 12:46:11 -0500
  21369. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21370. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21371. From:         Mark Duffield <duffiem@AA.WL.COM>
  21372. Subject:      Re: HyperCard (was- Kee's show.
  21373. In-Reply-To:  Jerry Ballard <gqb@FARALLON.COM> "Re: HyperCard (was- Kee's
  21374.               show." (Nov 18,  9:26am)
  21375.  
  21376. On Nov 18,  9:26am, Jerry Ballard wrote:
  21377. > Subject: Re: HyperCard (was- Kee's show.
  21378. > >>I think there are a whole load of people like me who secretly
  21379. > >>_love_ HyperCard.
  21380. >
  21381. > I make no secrets about it. If I have anything that needs to be done FAST,
  21382. > whether it involves MS Mail, text parsing, timers, flat-file DB work... the
  21383. > list is endless, I immediately turn to HCard.
  21384. > IMHO, its still THE finest end user development environment ever written.
  21385. > I still maintain that AppleScript should have been implemented as a language
  21386. > extension to HCard, with the option to save 'code-only' apps & scripts.
  21387. >
  21388. > But that water has long since passed under the bridge.
  21389. >-- End of excerpt from Jerry Ballard
  21390.  
  21391. I once developed a HyperCard stack to manage users on a UNIX system.  The
  21392. stack generated a csh script that all I had to do was move the UNIX box
  21393. and execute as root.  The hardcore UNIX types here gave me a hard time, it took
  21394. me a fraction of the time to generate a set of accounts that it took them.
  21395.  
  21396. Today, if I still used the application, I would probably write an applescript
  21397. to generate the csh script, have it FTPed to the UNIX system, and issue an
  21398. rexec to execute it from afar.  I wouldn't even have to interactively log into
  21399. the box.  I bet Sun Microsystems would _love_ to hear that I was managing
  21400. their workstations with HyperCard.
  21401.  
  21402. (I had to make this story relevent to AppleScript somehow)
  21403.  
  21404. Mark
  21405.  
  21406. --
  21407. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  21408.  Mark J. Duffield                    | duffiem@aa.wl.com
  21409.  Sr. Systems Specialist              |
  21410.  Preclinical Scientific Computing    | MIME Spoken here.
  21411.  Parke Davis Pharmaceutical Research |
  21412.  Ann Arbor, MI  48105                |
  21413. =========================================================================
  21414. Date:         Fri, 18 Nov 1994 13:01:27 -0500
  21415. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21416. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21417. From:         Kiran Wagle <groo@NETCOM.COM>
  21418. Subject:      Re: more Eudora
  21419.  
  21420. On 11/17/94, Dan Hinckley opined:
  21421.  
  21422. > body selected . Anyone tell me whether/how AS can be used to move the
  21423. > insertion point to the top or bottom of the quoted msg body? I haven't
  21424.  
  21425. I don't think it can be done yet.  I do not know if it's being worked on,
  21426. tho I suspect it is.  Eudora doesn't support the Object Model yet, so you
  21427. can't use the usual methods of moving insertion points around in windows.
  21428.  
  21429. A workaround is to copy the body of the message and use a text editor with
  21430. robust AE support to edit it, then copy it back.
  21431.  
  21432. > 2) Anyone suggest how to test if a mailbox is 'open'? 'Open' doesn't appear
  21433. > to be a property of a mailbox. FileBusy doesn't seem to help either...
  21434.  
  21435. As far as I know there's no way to do this.  (I discussed it with the
  21436. author of MailConverter; we never did come up with a good workaround in
  21437. 2.x.)  I don't expect it'll be supported anytime soon, either.  I hope that
  21438. Steve will support a command to make a new mail message from a text file
  21439. (MailConverter and NewsWatcher both want to be able to do this) or (my
  21440. preference) from a collection of "headers" and a "body," both of which
  21441. could presumably be files.
  21442.  
  21443. Telling Eudora to make a message from parts makes sense, trying to figure
  21444. out if it's using a file so you can mess with it yourself doesn't.  (I DO
  21445. wish Eudora would flag the mailboxes busy so they couldn't be modified
  21446. while it was running.
  21447.  
  21448. I have no clue what Steve's working on right now.  Last thing to come down
  21449. the pipe was some support for PGP (a HI nightmare if ever there was one)
  21450. and some pretty cool changes to the Ph support.  But better scripting
  21451. support is definitely on the list.
  21452.  
  21453. ~ Kiran <groo@netcom.com>
  21454.  
  21455. --
  21456. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  21457. =========================================================================
  21458. Date:         Fri, 18 Nov 1994 13:01:51 -0500
  21459. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21460. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21461. From:         Kiran Wagle <groo@NETCOM.COM>
  21462. Subject:      Re: buyer's remorse
  21463.  
  21464. On 11/17/94, Kyraden opined:
  21465.  
  21466. > say you were getting stack crawls for apps that weren't running...? Now
  21467. > that is odd... How did you decide it was RD's fault?
  21468.  
  21469. Because I'd installed the patch that puts an indicator in the corner of the
  21470. screen when RD is working, and it would blink furiously and grind away at
  21471. the drive for about 30 seconds before dropping into MacsBug.  Whatever was
  21472. going on seemed to have *something* to do with RD, and particularly with
  21473. disk storage.
  21474.  
  21475. When I added another 4M of real RAM the problems went from hourly or so to
  21476. very rare, and when I added the 040 VM update they seem to have
  21477. disappeared.
  21478.  
  21479. I like RD, I just wish I had the option to turn the disk storage off.
  21480.  
  21481. ~ Kiran
  21482.  
  21483. --
  21484. 1628 5th St NW Washington DC 20001 (202) 483-3373/3157 <groo@netcom.com>
  21485. =========================================================================
  21486. Date:         Fri, 18 Nov 1994 13:11:46 -0500
  21487. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21488. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21489. From:         Jim Melton <m8j@COSMAIL1.CTD.ORNL.GOV>
  21490. Subject:      Re: Eudora Announcer script (yet again)
  21491.  
  21492. >In reply to David Messina's question about our (Roel Vertegaal and mine)
  21493. >Eudora announcer the following.
  21494.  
  21495. <stuff deleted>
  21496.  
  21497. >As a matter of fact I've spend some time 'upgrading' the announcer to work
  21498. >with Eudora 1.5 (should have the same dict as 2.1) on A Pmac 6100 and I
  21499. >have to admit I can't get it working properly.
  21500.  
  21501. <more stuff deleted>
  21502.  
  21503. >or something. As said before, I can't get it running.
  21504.  
  21505.  
  21506. OK, folks, here is a question from an AppleScript (very)newbie:  Now that I
  21507. have Eudora 2.1 trying to "notify" an applet that doesn't work... how do I
  21508. make the thing _stop_ trying!?
  21509.  
  21510. When I drop Eudora Announcer 1.0 onto Eudora Notify Controller, it first
  21511. asks me if I want to turn notification "On" or "Off".  If I select "On", it
  21512. then proceeds to tell me that "Notification already appears to be on".  If
  21513. I select "Off", it then tells me that "Notification already appears to be
  21514. off".  What gives?
  21515.  
  21516. Also, where does Eudora keep track of this kind of AppleScript related
  21517. stuff?  I tried trashing Eudora and the Eudora Settings file.  No luck.
  21518.  
  21519. Any help would be greatly appreciated!
  21520.  
  21521. Jim
  21522. =========================================================================
  21523. Date:         Fri, 18 Nov 1994 11:00:51 -0800
  21524. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21525. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21526. From:         David Lewis <lewis@NETCOM.COM>
  21527. Subject:      Re: Eudora Announcer script (yet again)
  21528.  
  21529. >>In reply to David Messina's question about our (Roel Vertegaal and mine)
  21530. >>Eudora announcer the following.
  21531. >
  21532. ><stuff deleted>
  21533. >
  21534. >>As a matter of fact I've spend some time 'upgrading' the announcer to work
  21535. >>with Eudora 1.5 (should have the same dict as 2.1) on A Pmac 6100 and I
  21536. >>have to admit I can't get it working properly.
  21537. >
  21538. ><more stuff deleted>
  21539. >
  21540. >>or something. As said before, I can't get it running.
  21541. >
  21542. >
  21543. >OK, folks, here is a question from an AppleScript (very)newbie:  Now that I
  21544. >have Eudora 2.1 trying to "notify" an applet that doesn't work... how do I
  21545. >make the thing _stop_ trying!?
  21546.  
  21547. Execute this from the script editor:
  21548.  
  21549. tell application "Eudora 2.1"
  21550.     stop notifying alias "theDisk:theFolder:Eudora Announcer" when mail arrives
  21551. end tell
  21552.  
  21553. As with starting, you only have to do it once.
  21554.  
  21555. >Also, where does Eudora keep track of this kind of AppleScript related
  21556. >stuff?  I tried trashing Eudora and the Eudora Settings file.  No luck.
  21557. >
  21558. It's in the Eudora Settings file. There's an 'eNot' resource whose name is
  21559. a concatenation of the creator of the application it's to notify and the
  21560. event (in your case 'wArv' for mail arrives.
  21561.  
  21562.         David
  21563.  
  21564. David Lewis     Seagate Technology      (408) 439-2374  lewis@netcom.com
  21565. =========================================================================
  21566. Date:         Fri, 18 Nov 1994 13:06:51 -0600
  21567. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21568. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21569. From:         Greg Hiner <hiner@MAIL.UTEXAS.EDU>
  21570. Subject:      Re: more Eudora
  21571.  
  21572. >As far as I know there's no way to do this.  (I discussed it with the
  21573. >author of MailConverter; we never did come up with a good workaround in
  21574. >2.x.)  I don't expect it'll be supported anytime soon, either.  I hope that
  21575. >Steve will support a command to make a new mail message from a text file
  21576. >(MailConverter and NewsWatcher both want to be able to do this) or (my
  21577. >preference) from a collection of "headers" and a "body," both of which
  21578. >could presumably be files.
  21579. >
  21580. >Telling Eudora to make a message from parts makes sense, trying to figure
  21581. >out if it's using a file so you can mess with it yourself doesn't.  (I DO
  21582. >wish Eudora would flag the mailboxes busy so they couldn't be modified
  21583. >while it was running.
  21584. >
  21585.  
  21586.  
  21587. Couldn't you use Atul Butte's TCP/IP osax to send messages directly? It
  21588. appears from his example that this should be possible to create messages
  21589. from parts and use smtp to send the message along.
  21590.  
  21591. Also Mailshare is supposed to be fully scriptable someday and as it handles
  21592. smtp itself it would also be a logical app to handle mailing duties.
  21593.  
  21594. Greg
  21595. =========================================================================
  21596. Date:         Fri, 18 Nov 1994 13:42:50 -0600
  21597. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21598. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21599. From:         Ken Fox <kjfox@MKE.AB.COM>
  21600. Subject:      MacHTTP and encoded data
  21601.  
  21602. Hi,
  21603. I'm using MacHTTP and am getting arguments from
  21604. a form using POST.  The data is encoded upon
  21605. return.  I pass the data directly into either
  21606. AppleScript or HyperCard.  Problem is that I
  21607. need the text data unencoded and don't really
  21608. want to write a function to do that myself if
  21609. an alternative exists.
  21610. Is there any easy way to get the data to the
  21611. target application without the encoding.
  21612.  
  21613. Ken
  21614.  
  21615. ________________________________________________________________________
  21616. Kenneth J. Fox         |     E-mail:  kjfox@mke.ab.com (pref)
  21617. Allen-Bradley Company  |      Phone:  414-382-3287 (V) 414-382-2742 (F)
  21618. Rockwell Automation    |      Pager:  414-256-9702
  21619. Milwaukee, WI          |
  21620. =========================================================================
  21621. Date:         Fri, 18 Nov 1994 13:46:13 -0600
  21622. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21623. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21624. From:         Ken Fox <kjfox@MKE.AB.COM>
  21625. Subject:      Re: Scripting MS Mail
  21626.  
  21627. >I need to control MS Mail via AppleScript.
  21628. >
  21629. >Can anyone give any suggestions on how to do this?
  21630. >
  21631. As far as I know, there is only one API into MS Mail.
  21632. That is a HyperCard XFCN.  You can, and I have, blended
  21633. HyperCard since it is scriptable with AppleScripts to
  21634. have HyperTalk get the mail from MS Mail and then either
  21635. process it within HyperCard or pass it to some AppleScript
  21636. application.
  21637.  
  21638. Good luck,
  21639. Ken
  21640.  
  21641.  
  21642. ________________________________________________________________________
  21643. Kenneth J. Fox         |     E-mail:  kjfox@mke.ab.com (pref)
  21644. Allen-Bradley Company  |      Phone:  414-382-3287 (V) 414-382-2742 (F)
  21645. Rockwell Automation    |      Pager:  414-256-9702
  21646. Milwaukee, WI          |
  21647. =========================================================================
  21648. Date:         Fri, 18 Nov 1994 12:44:44 -0800
  21649. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21650. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21651. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  21652. Subject:      Re: FMP AE open with password
  21653.  
  21654. >I finaly got it, mayby it an FAQ but here it is anyway
  21655. >
  21656. >Thit is the way to open a file from Userland Frontier with a password included
  21657. >
  21658. >on open_pw (obj , password)
  21659. >        return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
  21660. >'pPAS',password))}
  21661.  
  21662. The above is correct (and is included the open () verb in the newer "glue"
  21663. for FileMaker which is on CompuServe (if it is not on gaea it will be,
  21664. probably early next week).  The new glue requires Frontier 3.0.
  21665.  
  21666. You will have much better success if you have FileMaker the frontmost
  21667. application before doing any open (whether or not a password is needed).
  21668. FileMaker might have to complain about a bad password, or ask for one, and
  21669. doesn't do well when Frontier sends it an open event while it (FileMaker)
  21670. is in the background.
  21671.   --John
  21672.  
  21673. --John W. Baxter    Port Ludlow, WA USA   jwbaxter@pt.olympus.net
  21674.   UserLand Software support
  21675. =========================================================================
  21676. Date:         Fri, 18 Nov 1994 12:44:49 -0800
  21677. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21678. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21679. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  21680. Subject:      Re: Maybe Applescript Yes
  21681.  
  21682. >I continued to fiddle with this script, trying another mail server that is
  21683. >also a novell server, and finally got an error message that made more
  21684. >sense. It says:
  21685. >
  21686. >Error: Can't get <<class lhst>> of {class:stream status, bytes waiting:0,
  21687. >connection status:connected, local host:"138.86.11.60",local
  21688. >port:1569,remote host:"138.86.1.10",remote port:25}. -1728
  21689. >
  21690. >First off, -1728 is not a Mac error according to easy errors 1.1. Next,
  21691. >those parameters are the very params in the dictionary of the TCP/IP OSAX
  21692. >under class:stream status. I was getting more excited by the minute (this
  21693. >is my first real functional project in scripting).
  21694.  
  21695. If Easy Errors doesn't include -1728, that means Easy Errors is
  21696. (considerably) out of date.  -1728 is errAENoSuchObject, described in
  21697. Inside Mac: IAC as
  21698.  
  21699. "A run-time resolution error, for example: object specifier record asked
  21700. for the third element, but there are only two."
  21701.  
  21702. >
  21703. >So I'm left with this question. What is the <<class lhst>>? To what does
  21704. >that refer?
  21705.  
  21706. Impossible to say what it refers to, without knowledge of the application.
  21707. What it is is easy, but not interesting:  it's an AE record keyword
  21708. ('lhst').  And there's nothing in a currently available dictionary which
  21709. describes it, so it is shown in the generic form.  But it looks like it
  21710. should be the "local host" item ['lhst' is a rational choice for that
  21711. keyword], so it's not clear why it's unknown when the error is reported.
  21712.  
  21713. >Any thoughts are appreciated.
  21714. Unfortunately, on this one I can only offer thoughts, not an answer.
  21715.  
  21716. --John
  21717.  
  21718. --
  21719. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  21720. =========================================================================
  21721. Date:         Fri, 18 Nov 1994 12:45:00 -0800
  21722. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21723. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21724. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  21725. Subject:      Re: Character mappings used here?
  21726.  
  21727. >> It doesn't compile because you haven't use the chevron characers.
  21728. >> To create the chevron characters =3DAB=3DBB, use option-\ and shift-optio=
  21729. n-\.
  21730. >
  21731. >What message decoding option will allow me to see the special characters us=
  21732. ed
  21733. >by some members of this list? I'm running the Mail*Link PT/INET PowerTalk
  21734. >gateway with the default body text translation, namely: RFC 822->987 USA.
  21735.  
  21736. There is some command you send to the listserv at Dartmouth which tells it
  21737. to include the header in your message, when it sends it out, which alerts
  21738. mailers to expect the quoted-printable encoding stuff.  Unfortunately, I
  21739. forget *what* command.  Last I knew, that still left digest readers with
  21740. the encoded characters, which is why I still include a glossary (when I
  21741. remember).  As in
  21742.    =ABclass foo =BB
  21743.  
  21744.    --John (=AB is left chevron, =BB is right chevron)
  21745.  
  21746. --
  21747. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  21748. =========================================================================
  21749. Date:         Fri, 18 Nov 1994 12:45:04 -0800
  21750. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21751. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21752. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  21753. Subject:      Re: audio CD and GTQLib
  21754.  
  21755. >Sorry to double post, but I just remembered the other possible problem. One
  21756. >of the ifs is an eject command and as many of you may know, if you tartup
  21757. >with a CD in and have filesharing on, you cannot eject the disk. When this
  21758. >happens, I get a nice error telling me "File busy", which is fine for me,
  21759. >but it also puts up the "OK" and "Edit" buttons. I will at some point be
  21760. >giving this little applet away to friends who are not scripters, and do not
  21761. >have the SE. How can I put an "on error" type of dialog instead of this
  21762. >built in one?
  21763.  
  21764. try
  21765.    --some stuff which might fail
  21766. on error
  21767.    --do something about the failure
  21768. end try   (just to confuse matters, that can also be end error!)
  21769.  
  21770. There are several parameters you can tack onto the on error line:  you can
  21771. get the error number, error text if the app provided some, the object
  21772. involved with the error (if provided by the app), and the results of the
  21773. event up to the error (if provided by the app).  The partial results are
  21774. nice if you pass in a list, and there is a problem with the 10th item in
  21775. the list.  You can also see what was asked for in a failed coercion attempt
  21776. (if the app provides it).
  21777.  
  21778.  
  21779. on error errorText number errorCode from offendingObject partial result
  21780. resultSoFar to expectedType
  21781.  
  21782. Your error handling can fix things up, post a more suitable message, do
  21783. something else entirely (like adding an error report to a log), trigger a
  21784. different error (using the error command), or .... .  It can also be left
  21785. out, in which case the error is silently ignored.
  21786.  
  21787. See the AppleScript Language Guide.
  21788.  
  21789.    --John
  21790.  
  21791. --
  21792. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  21793. =========================================================================
  21794. Date:         Fri, 18 Nov 1994 12:45:09 -0800
  21795. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21796. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21797. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  21798. Subject:      Re: MACSCRPT Digest - 16 Nov 1994 to 17 Nov 1994
  21799.  
  21800. >>Does anyone know of an osax that allows you to do 60 minutes
  21801. >>of work in 30 minutes?
  21802. >
  21803. >I've been writing one, but it always seems to be 2 weeks away from working.
  21804.  
  21805. When I arrived at the US Army Electronic Proving Ground, Fort Huachuca
  21806. (AZ), there was a major item due in for testing in about 6 months.  The
  21807. group (not mine) responsible for the testing was busily planning for the
  21808. test.
  21809.  
  21810. 21 months later, when I emerged from the Army (still at Ft Huachuca), that
  21811. test item was due in for testing in 6 months.  And the responsible group
  21812. was busily planning for the test.
  21813.  
  21814.    --John
  21815.  
  21816. --
  21817. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  21818. =========================================================================
  21819. Date:         Fri, 18 Nov 1994 17:05:13 -0600
  21820. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21821. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21822. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  21823. Subject:      Re: HyperCard (was- Kee's show.
  21824.  
  21825. I'm also a HyperCard fan, but it runs so slow on my PowerMac that I've
  21826. transferred most of the stuff I used to use HyperCard for to Filemaker.
  21827. Filemaker's slow too, but it's not painfully slow.
  21828.  
  21829. Dennis L. Whiteman
  21830. THE ULTIMATE FREELANCER
  21831. ultimate@mail.icon.net
  21832.  
  21833.  ------ From: Macintosh Scripting Systems, Fri, Nov 18, 1994 ------
  21834.  
  21835. Recently it seems if you mention that you use HyperCard,
  21836. people snicker, and look down their nose at you.
  21837. =========================================================================
  21838. Date:         Fri, 18 Nov 1994 19:16:39 -0600
  21839. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21840. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21841. From:         David Messina <messina@MCS.COM>
  21842. Subject:      Re: Character mappings used here?
  21843.  
  21844. The possible commands one can send to the listserv regarding headers:
  21845.  
  21846. SET          FULLhdr or FULLBsmtp              -> "Full" mail headers
  21847.              IETFhdr                           -> Internet-style headers
  21848.              SHORThdr or SHORTBsmtp            -> Short (default) headers
  21849.              DUALhdr                           -> Dual headers, useful with PC
  21850.                                                   or Mac mail programs
  21851.  
  21852. For a complete list of options you can set for this and other lists, send
  21853. the message: INFO REFCARD
  21854.  
  21855.  
  21856.  
  21857.  
  21858. >>> It doesn't compile because you haven't use the chevron characers.
  21859. >>> To create the chevron characters =3DAB=3DBB, use option-\ and shift-optio=
  21860. >n-\.
  21861. >>
  21862. >>What message decoding option will allow me to see the special characters us=
  21863. >ed
  21864. >>by some members of this list? I'm running the Mail*Link PT/INET PowerTalk
  21865. >>gateway with the default body text translation, namely: RFC 822->987 USA.
  21866. >
  21867. >There is some command you send to the listserv at Dartmouth which tells it
  21868. >to include the header in your message, when it sends it out, which alerts
  21869. >mailers to expect the quoted-printable encoding stuff.  Unfortunately, I
  21870. >forget *what* command.  Last I knew, that still left digest readers with
  21871. >the encoded characters, which is why I still include a glossary (when I
  21872. >remember).  As in
  21873. >   =ABclass foo =BB
  21874. >
  21875. >   --John (=AB is left chevron, =BB is right chevron)
  21876.  
  21877. --
  21878.  
  21879. David Messina
  21880. messina@mcs.com
  21881. =========================================================================
  21882. Date:         Fri, 18 Nov 1994 17:19:44 -0800
  21883. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21884. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21885. From:         Greg Francis <gfrancis@ESDTCOM.WEDNET.EDU>
  21886. Subject:      Script launching on application quitting?
  21887.  
  21888. --part_AAF292B0000A98EB00000006
  21889. Content-Type: Text/Plain; charset=US-ASCII
  21890. Content-Disposition: Inline
  21891.  
  21892. I heard there was an extension or something that would automatically launch a
  21893. script whenever an application was quit. Does anyone know what this is and
  21894. where I can get it?
  21895.  
  21896. Thanks,
  21897.  
  21898. Greg
  21899.  
  21900. --part_AAF292B0000A98EB00000006
  21901. Content-Type: Text/Plain; charset=US-ASCII
  21902. Content-Disposition: Inline
  21903.  
  21904. __________________________________________________________________________
  21905. Greg Francis                | STEP/Star Schools Project
  21906. Research and Development    | Educational Service District 101, Spokane WA
  21907. Technical Support Staff     | Bringing the best in K-12 distance education
  21908. gfrancis@esdtcom.wednet.edu | to remote schools across the United States.
  21909. --part_AAF292B0000A98EB00000006--
  21910. =========================================================================
  21911. Date:         Fri, 18 Nov 1994 22:34:53 -0500
  21912. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21913. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21914. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  21915. Subject:      Re: buyer's remorse
  21916.  
  21917. Barry and MacScripters:
  21918.  
  21919.    On Thu, 17 Nov 1994 Barry Chern <bchern@FREENET.COLUMBUS.OH.US> said:
  21920. >Now that I've been struggling to live with 7.5 for awhile, I feel I made a
  21921. >bad decision. If I'd bought the Finder thingee, I would have gotten some
  21922. >...
  21923. >anyway, but the Scriptable Finder is the main thing keeping me with 7.5 at
  21924. >the moment, aside from the pretty little desktop pattern I doodled out
  21925.  
  21926. Without a doubt, the Scriptable Finder is worth the price of System 7.5!
  21927. However, a bunch of people (me included) got burned early on, since the
  21928. regular installation of System 7.5 is probably *not* the way to go. Instead
  21929. you want to do a "clean install."
  21930.  
  21931.    Here's my story: I first installed 7.5 about a month-and-a-half ago (the
  21932. regular install). I had all sorts of problems with menus, the desktop,
  21933. Finder freezes, and so on. I tried to "7.1-ify" it, as you describe, and
  21934. that didn't work, either.
  21935.  
  21936.    Soon thereafter, I had the misfortune (sigh) to have a hard drive crash
  21937. (NOT related to System 7.5 -- by the way, NEVER kick your hard drive at any
  21938. time, especially at startup!) The drive was a new one from APS, and they
  21939. cheerfully honored the warranty. Since reinstalling 7.5 on this newly
  21940. formatted disk, I have never looked back. If you need instructions for a
  21941. "clean install," feel free to e-mail me.
  21942.  
  21943.    Remember, you can fully "back-customize" 7.5 to the point it largely
  21944. resembles 7.1 (use discretion). In fact the only visible difference on my
  21945. own PowerBook is the little question mark in the menu bar where the balloon
  21946. used to be.
  21947.  
  21948.    Keep up the good work,
  21949.    Clint (who, once he went Mac, never looked back)
  21950.  
  21951.  
  21952.    Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  21953.    Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  21954.    Department of Molecular Biology | 609/258-5993
  21955.    Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  21956. =========================================================================
  21957. Date:         Sat, 19 Nov 1994 00:00:32 -0500
  21958. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21959. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21960. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  21961. Subject:      Re: buyer's remorse
  21962. In-Reply-To:  <v01510200aaf318dfb81f@[128.112.65.217]>
  21963.  
  21964. On Fri, 18 Nov 1994, Clinton MacDonald wrote:
  21965.  
  21966. > Barry and MacScripters:
  21967. >
  21968. ...>
  21969. > Without a doubt, the Scriptable Finder is worth the price of System 7.5!
  21970. > However, a bunch of people (me included) got burned early on, since the
  21971. > regular installation of System 7.5 is probably *not* the way to go. Instead
  21972. > you want to do a "clean install."
  21973. >
  21974.  
  21975. I did that in the first place.
  21976.  
  21977. >    Here's my story: I first installed 7.5 about a month-and-a-half ago (the
  21978. > regular install). I had all sorts of problems with menus, the desktop,
  21979. > Finder freezes, and so on. I tried to "7.1-ify" it, as you describe, and
  21980. > that didn't work, either.
  21981.  
  21982. No, I tried to "scriptable-finder-ify" 7.1
  21983. =========================================================================
  21984. Date:         Fri, 18 Nov 1994 23:05:24 +0000
  21985. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21986. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  21987. From:         Kyraden <jme@JOSAIAH.SEWANEE.EDU>
  21988. Subject:      Re: buyer's remorse
  21989.  
  21990. >   Remember, you can fully "back-customize" 7.5 to the point it largely
  21991. >resembles 7.1 (use discretion). In fact the only visible difference on my
  21992. >own PowerBook is the little question mark in the menu bar where the balloon
  21993. >used to be.
  21994. >
  21995.  
  21996.  
  21997. I just have one question here:
  21998. What is the point of getting 7,5 if you "back cuistomize" it to resemble 7.1??
  21999.  
  22000. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  22001.          www server: http://josaiah.sewanee.edu/          )
  22002. =========================================================================
  22003. Date:         Sat, 19 Nov 1994 01:15:41 -0500
  22004. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22005. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22006. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  22007. Subject:      Re: Buyer's Remorse
  22008. In-Reply-To:  <199411180911.EAA25940@acme.freenet.columbus.oh.us>
  22009.  
  22010. Lawrence D'Oliveiro wrote, back when I meant to reply originally:
  22011.  
  22012. >>What exactly happened when you tried moving stuff to/from the desktop?
  22013.  
  22014. As best as I can remember, the icon just snapped right back to where it
  22015. started. I didn't notice this happening with dragging between other
  22016. folders. But, I didn't mess with it for long.
  22017.  
  22018. So, do we have any concensus yet on whether there is enough difference
  22019. between Finder 7.1.3 and 7.1.4 to make it not work? (I'm not sure I want
  22020. to be the one to experiment again, after getting that one alarming
  22021. message. Did anyone see any merit in those prophesies of doom?)
  22022.  
  22023. B.
  22024. =========================================================================
  22025. Date:         Sat, 19 Nov 1994 17:31:47 +0900
  22026. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22027. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22028. From:         Seiji Hayashi <g44402a@NUCC.CC.NAGOYA-U.AC.JP>
  22029. Subject:      [Q}Applescript FAQs
  22030.  
  22031. Hello netters,
  22032.         I am a beginner with respect to Applescript and AppleEvent, so I am
  22033. seeking for Applescript (AppleEvent) FAQs or related useful documents on
  22034. aFTP, Gopher, WWW, and WAIS. I would appreciate if anyone let me know URLs
  22035. for them.
  22036.  
  22037. Thanks in advance.
  22038.  
  22039. --------------------------------------------
  22040. Seiji Hayashi (g44402a@nucc.cc.nagoya-u.ac.jp)
  22041. Department of Earth and Planetary Sciences
  22042. School of Science,Nagoya University
  22043. Furo-cho  Chikusa-ku
  22044. Nagoya 464-01 Japan
  22045. --------------------------------------------
  22046. =========================================================================
  22047. Date:         Sat, 19 Nov 1994 01:42:05 -0700
  22048. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22049. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22050. From:         Matthew Frederick <connote@INDIRECT.COM>
  22051. Subject:      Re: BeyondMenus XTension
  22052.  
  22053. >> >  download Acrobyte's new BeyondMenus XTension - among
  22054.  
  22055. >        Does anyone know where this Xtension is available over FTP?
  22056.  
  22057. It's available at info-mac.
  22058.  
  22059. Matthew
  22060.  
  22061. "Believe nothing, no matter where you read it, or who said it --
  22062.  even if I have said it -- unless it agrees with your own reason
  22063.  and your common sense.                             --The Buddha
  22064. Matthew Frederick, Phoenix, Arizona, USA  (mfred@amug.org)
  22065. =========================================================================
  22066. Date:         Sat, 19 Nov 1994 11:39:28 +0100
  22067. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22068. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22069. From:         Tilmann Robbe <robbe@SIBM2.RUF.UNI-FREIBURG.DE>
  22070. Subject:      Re: FMP AE open with password
  22071.  
  22072. >I finaly got it, mayby it an FAQ but here it is anyway
  22073. >
  22074. >Thit is the way to open a file from Userland Frontier with a password
  22075. included
  22076. >
  22077. >on open_pw (obj , password)
  22078. >        return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
  22079. >'pPAS',password))}
  22080.  
  22081. Can I do the same or something similar with AppleScript, or does it only
  22082. work with Frontier?
  22083.  
  22084. Tilmann
  22085.  
  22086. ---------------------------------------------------------------------------
  22087. * Tilmann Robbe                 *  E-Mail:robbe@sibm2.ruf.uni-freiburg.de *
  22088. * Systemadministrator           *  SnailMail: KG I, Werthmannplatz        *
  22089. * Seminar fuer Alte Geschichte  *             D-79098 Freiburg            *
  22090. * Universitaet Freiburg/Brsg.   *  Phone/Fax: 0049 - (0)761 - 273813      *
  22091. ---------------------------------------------------------------------------
  22092. =========================================================================
  22093. Date:         Sat, 19 Nov 1994 08:31:59 GMT
  22094. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22095. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22096. From:         Gateway <sage!Gateway@NOC.TOR.HOOKUP.NET>
  22097. Organization: Sage Design
  22098. Subject:      NDN: Script launching on application quitting?
  22099.  
  22100. Sorry. Your message could not be delivered:
  22101.  
  22102. Message contained no valid addresses.
  22103. =========================================================================
  22104. Date:         Sat, 19 Nov 1994 13:00:54 GMT
  22105. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22106. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22107. From:         Dan Hinckley <dbh@GN.APC.ORG>
  22108. Subject:      Re: MACSCRPT Digest - 16 Nov 1994 to 17 Nov 1994
  22109.  
  22110. >>>Does anyone know of an osax that allows you to do 60 minutes
  22111. >>>of work in 30 minutes?
  22112. >>
  22113. >>I've been writing one, but it always seems to be 2 weeks away from working.
  22114. >
  22115. >When I arrived at the US Army Electronic Proving Ground, Fort Huachuca
  22116. >(AZ), there was a major item due in for testing in about 6 months.  The
  22117. >group (not mine) responsible for the testing was busily planning for the
  22118. >test.
  22119. >
  22120. >21 months later, when I emerged from the Army (still at Ft Huachuca), that
  22121. >test item was due in for testing in 6 months.  And the responsible group
  22122. >was busily planning for the test.
  22123. >
  22124. >   --John
  22125.  
  22126. So that osax is still 6 months away from being de-classified, right?
  22127. =========================================================================
  22128. Date:         Sat, 19 Nov 1994 07:16:45 -0600
  22129. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22130. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22131. From:         Chuck Shotton <cshotton@OAC.HSC.UTH.TMC.EDU>
  22132. Subject:      MacHTTP and encoded data
  22133.  
  22134. >I'm using MacHTTP and am getting arguments from
  22135. >a form using POST.  The data is encoded upon
  22136. >return.  I pass the data directly into either
  22137. >AppleScript or HyperCard.  Problem is that I
  22138. >need the text data unencoded and don't really
  22139. >want to write a function to do that myself if
  22140. >an alternative exists.
  22141. >Is there any easy way to get the data to the
  22142. >target application without the encoding.
  22143.  
  22144. There are several OSAX functions available for encoding and decoding URLs,
  22145. as well as taking apart form arguments. As usual, check the MacHTTP Home
  22146. page. These OSAXen are on the Tools page off the main menu.
  22147.  
  22148. http://www.uth.tmc.edu/mac_info/machttp_info.html
  22149.  
  22150. -----------------------------------------------------------------------
  22151. Chuck Shotton
  22152. cshotton@oac.hsc.uth.tmc.edu                           "I am NOT here."
  22153. =========================================================================
  22154. Date:         Sat, 19 Nov 1994 17:33:45 +0100
  22155. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22156. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22157. From:         WalrathW <walrathw@RFERL.ORG>
  22158. Subject:      Re: Script launching on application quitting?
  22159.  
  22160. > I heard there was an extension or something that would automatically launch
  22161. a
  22162. > script whenever an application was quit. Does anyone know what this is and
  22163. > where I can get it?
  22164.  
  22165. This probably isn't what you want, but you could just write a stay-open
  22166. script application to do this and leave it running all the time. Have the
  22167. script get a list of processes every X seconds and when it finds an
  22168. application that it is supposed to watch, set a flag that the app is running.
  22169. When the app quits, take whatever actions you want and clear the flag. You
  22170. could keep a list of lists, where each of the inner lists had three items:
  22171. the name of the app to watch for, the action to be executed when the app
  22172. quits (could even be a script object), and then your flag. Each time through
  22173. your on idle handler, scan through the list.
  22174.  
  22175. -wayne
  22176. =========================================================================
  22177. Date:         Sat, 19 Nov 1994 12:17:18 -0500
  22178. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22179. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22180. From:         "a.h.s. boy" <spud@ACCESS.DIGEX.NET>
  22181. Subject:      Re: Script launching on application quitting?
  22182.  
  22183. At 11:33 AM 19.11.94, WalrathW wrote:
  22184. >> I heard there was an extension or something that would automatically launch
  22185. >a
  22186. >> script whenever an application was quit. Does anyone know what this is and
  22187. >> where I can get it?
  22188. >
  22189.  
  22190. You might be looking for ScriptSynch. From the Read Me file:
  22191.  
  22192. "In scripter lingo, ScriptSynch is a system extension that can provide
  22193. functionality resembling "attachability" to your applications. To mortals,
  22194. this means ScriptSynch can automatically launch applications, open files,
  22195. or run scripts when specific applications launch or quit. This is useful
  22196. for running a "startup script" whenever an application loads, attaching one
  22197. application to another so they launch and quit at the same time (Eudora and
  22198. Nuntius, for example), or tracking application usage through scripting. A
  22199. little contrary to its name, ScriptSynch works fine without AppleScript,
  22200. although it works best in conjunction with it."
  22201.  
  22202. Should be available on Gaea...
  22203.  
  22204. spud.
  22205.  
  22206.  
  22207. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22208. a.h.s. boy ---------------------- manifesto overlord, dada typographics
  22209. --------------------------------- spud on MediaMOO, Lambda MOO, PMC-MOO
  22210. spud@access.digex.net ----------- Web:    http://access.digex.net/~spud
  22211.  
  22212. mangez du chocolat / lavez votre cerveau / dada / dada / buvez de l'eau
  22213. =========================================================================
  22214. Date:         Sat, 19 Nov 1994 10:57:34 -0800
  22215. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22216. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22217. From:         Jon Pugh <jonpugh@NETCOM.COM>
  22218. Subject:      Re: HyperCard
  22219.  
  22220. Christian Jacobsen <Christian_Jacobsen@QMGATE.ARC.NASA.GOV> wrote:
  22221. >
  22222. >Lawrence "Think of it as software plasticine" D'Oliveiro sez:
  22223. > > HyperCard doesn't get much respect these days...And it still remains
  22224. > > one of the most hackable tools around...Hacking HyperCard is an activity
  22225. > > with a long, well-understood tradition.
  22226. >
  22227. >I hope Apple realizes that.  I have used HyperCard since it was in Beta
  22228. >testing, and while I wouldn't want to try and teach someone how to use
  22229. >HyperCard today, I think there are a whole load of people like me who secretly
  22230. >_love_ HyperCard.  Recently it seems if you mention that you use HyperCard,
  22231. >people snicker, and look down their nose at you.
  22232.  
  22233. Hypercard is THE best selling piece of software Apple produces.  It gets no
  22234. respect and precious little support outside of the Hypercard team, which
  22235. isn't large.  However, the rumor mill says that a native version is in the
  22236. works, so there's hope for the future.  I can't wait.  I use Hypercard all
  22237. the time.  It's the place where I keep and access all my data.  You know,
  22238. the reason you have a computer?  In addition, it is the place to write
  22239. those annoying little things that don't need a complicated UI, but where
  22240. you want the answer right now.
  22241.  
  22242. I did a rot13, a phone number namer (all the letters a phone number
  22243. spells), the amount of vacation time I have accumulated, the amount of time
  22244. until my next vacation, the age of everyone I care about (13 days until
  22245. Jordan's 2nd birthday, then the fun begins ;) and lots more.  Versatility
  22246. is the key.
  22247.  
  22248. Jerry Ballard <gqb@FARALLON.COM> wrote:
  22249. >I still maintain that AppleScript should have been implemented as a language
  22250. >extension to HCard, with the option to save 'code-only' apps & scripts.
  22251.  
  22252. It comes darn close, and can actually be done with an osax from Jon's Commands.
  22253.  
  22254. One of Hypercard's biggest problems regarding AppleScript is the 30K limit
  22255. on AS object code.  Since it stores the compiled code in the script area,
  22256. it inherits this size limitation.  In addition, it doesn't support saving
  22257. run-only code.
  22258.  
  22259. The "run script resource" command in Jon's Commands allows you to save your
  22260. AppleScripts as resources in your stack.  They are then freed from the
  22261. limitations that the stack format imposes on Hypercard.  You can store them
  22262. run-only and any size.
  22263.  
  22264. All you have to do is write your code in your favorite script editor.  Save
  22265. it however you like.  Open the resulting script file with ResEdit (or
  22266. whatever).  Copy the 'scpt' resource into your stack.  Add a name and/or
  22267. change the number.  Put a "run script resource" command in your
  22268. stack/card/field/button script and away you go.
  22269.  
  22270. Jon
  22271. =========================================================================
  22272. Date:         Sat, 19 Nov 1994 11:07:14 -0800
  22273. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22274. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22275. From:         "Allan R. Crump Jr" <jhhw@CRL.COM>
  22276. Subject:      OSAX Source
  22277.  
  22278. Per my original message that started this whole mess:
  22279.  
  22280. If my problem with THEPORT not being defined is due to not saving/setting
  22281. the A4 area, why isn't this mentioned in the FLASH osax sample (which I
  22282. patterned my pascal version on) in Apple's 'Scripting Additions Guide'?
  22283.  
  22284. Additionally, I have taken other 'c' osaxen source, reworked some of the
  22285. code so they were pascal and in every other case I get a THEPORT not
  22286. defined error.
  22287.  
  22288. I guess no one works in pascal anymore.
  22289. =========================================================================
  22290. Date:         Sat, 19 Nov 1994 11:53:23 EST
  22291. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22292. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22293. From:         Mark Wickens <mark@EVERYWARE.COM>
  22294. Organization: EveryWare Development Corp.
  22295. Subject:      AppleScript Speed
  22296.  
  22297. Are there any general guidelines for improving AppleScript performance?
  22298.  
  22299. I have written an application with FaceSpan and while some operations are
  22300. admirably fast, others are painfully slow. I plan to do an analyis of this
  22301. myself, of course, but before I do, are there any general things I should know?
  22302.  
  22303. I also recently wrote a droplet application and was very unimpressed that it
  22304. took over 10 seconds to get to the open handler from the time something was
  22305. dragged to it, and a similar amount of time from my last line of code and
  22306. quitting to the Finder. By experimenting, I discovered that saving the app as
  22307. Run-Only cut these times quite a bit. This is the kind of tip I'm looking for
  22308. (though the droplet is still slower than I think it should be).
  22309.  
  22310. On another performance issue, is there anything that can be done about the
  22311. outrageous amount of time taken to parse/format/compile a script? I find myself
  22312. delaying saves because of this. Do I just have to live with it (or get a PPC)?
  22313.  
  22314. I tried the FAQ but couldn't find anything. Any ideas or pointers to books/FAQs
  22315. will be appreciated.
  22316.  
  22317. Thanks,
  22318. Mark
  22319. <mark@everyware.com>
  22320. =========================================================================
  22321. Date:         Sat, 19 Nov 1994 13:36:13 -0800
  22322. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22323. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22324. From:         Brian Hall <mspace@NETCOM.COM>
  22325. Subject:      Re: Kee's show and tell & FaceSpan
  22326.  
  22327. >FaceSpan is a fabulous tool for mocking up user interfaces for "real"
  22328. >software. I've used it to design several C++ applications, and it's come
  22329. >through for me as an efficient UI communication tool. Everyone gets the
  22330. >picture, before you start coding. The AppleScript support is just a means to
  22331. >this end. FaceSpan apps are of no value as software.
  22332. >
  22333. >I don't know who got it into their head that everyone who used AppleScript
  22334. >would need to use FaceSpan, but I'm sorry to say they were wrong. It's just
  22335. >hurting a great product, because people are missing the point of it. SDU
  22336. >should take it back, hike the price, and reposition it as the premier UI
  22337. >design tool. Right now, it's just wasting our time.
  22338.  
  22339. I disagree entirely.  I think the only problem was 1.0 being shipped with
  22340. the memry leak bug, but the concept of including FaceSpan is excellent.
  22341.  
  22342. Sure, folks that read this digest don't mind trips to Script Editor to
  22343. tweak a script, but what about everyone else?  With FaceSpan I can provide
  22344. *very* useful utilities that previously would have required C++ code in
  22345. literally *hours*.
  22346.  
  22347. We've taken our Eudora e-mail forwarding script - where every parameter
  22348. such as what fields t include, who to frward to, etc, is a property - and
  22349. made it useful for non-gearheads by putting a FaceSpan UI on top off it.
  22350.  
  22351. FaceSpan is the first rapid-development environment I have used that I
  22352. would actually use commercially.
  22353.  
  22354. __________________________________________________________________________
  22355. Mark/Space Softworks                                    voice 408-293-7299
  22356. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  22357. San Jose, CA 95113                                        bbs 408-293-7290
  22358.  
  22359. Macintosh connectivity software:               Internet: mspace@netcom.com
  22360. Communicate, CTB Tools, PageNOW!                 AppleLink, AOL: MARKSPACE
  22361.                   Goodies at ftp.netcom.com in pub/mspace
  22362. =========================================================================
  22363. Date:         Sat, 19 Nov 1994 13:36:16 -0800
  22364. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22365. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22366. From:         Brian Hall <mspace@NETCOM.COM>
  22367. Subject:      Re: Kee's show and tell
  22368.  
  22369. >>What exactly did you find troublesome about FaceSpan?
  22370. >
  22371. >Had to create a prefs file to store configuration data into. The ability of
  22372. >HyperCard to remember stuff is quite nice. I needed to do a bunch of text
  22373. >processing and I personally found the combination of AppleScript and no
  22374. >place to store variables just too much. But the real kicker was what seemed
  22375. >to be some sort of memory leak. It was a long time ago (in finger strokes)
  22376. >that I attempted to bend FaceSpan to do my bidding. The creation cycle,
  22377. >seemed slow and the debugging was non-existent.
  22378.  
  22379. You don't have to have a prefs file, you can use properties.
  22380.  
  22381. As to the leak, get version 1.0.1.
  22382.  
  22383. __________________________________________________________________________
  22384. Mark/Space Softworks                                    voice 408-293-7299
  22385. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  22386. San Jose, CA 95113                                        bbs 408-293-7290
  22387.  
  22388. Macintosh connectivity software:               Internet: mspace@netcom.com
  22389. Communicate, CTB Tools, PageNOW!                 AppleLink, AOL: MARKSPACE
  22390.                   Goodies at ftp.netcom.com in pub/mspace
  22391. =========================================================================
  22392. Date:         Sat, 19 Nov 1994 17:28:22 -0700
  22393. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22394. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22395. From:         Matthew Frederick <mfred@AMUG.ORG>
  22396. Subject:      Re: [Q}Applescript FAQs
  22397.  
  22398. >Hello netters,
  22399. >        I am a beginner with respect to Applescript and AppleEvent, so I am
  22400. >seeking for Applescript (AppleEvent) FAQs or related useful documents on
  22401. >aFTP, Gopher, WWW, and WAIS. I would appreciate if anyone let me know URLs
  22402. >for them.
  22403.  
  22404. In case you haven't already received a thousand responses, you can get all
  22405. of that stuff via FTP at:
  22406.  
  22407.         gaea.kgs.ukans.edu:applescript/
  22408.  
  22409. Good Luck!
  22410.  
  22411. Matthew
  22412.  
  22413. "Believe nothing, no matter where you read it, or who said it --
  22414.  even if I have said it -- unless it agrees with your own reason
  22415.  and your common sense.                             --The Buddha
  22416. Matthew Frederick, Phoenix, Arizona, USA  (mfred@amug.org)
  22417. =========================================================================
  22418. Date:         Sat, 19 Nov 1994 17:33:20 -0700
  22419. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22420. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22421. From:         Matthew Frederick <mfred@AMUG.ORG>
  22422. Subject:      Re: Kee's show and tell
  22423.  
  22424. >>>What exactly did you find troublesome about FaceSpan?
  22425. >>
  22426. >>place to store variables just too much. But the real kicker was what seemed
  22427. >>to be some sort of memory leak. It was a long time ago (in finger strokes)
  22428. >
  22429. >As to the leak, get version 1.0.1.
  22430.  
  22431. How do I get that? I've had version 1.0 for ages, but haven't heard hide
  22432. nor hair or a 1.0.1...
  22433.  
  22434. Matthew
  22435.  
  22436. "Believe nothing, no matter where you read it, or who said it --
  22437.  even if I have said it -- unless it agrees with your own reason
  22438.  and your common sense.                             --The Buddha
  22439. Matthew Frederick, Phoenix, Arizona, USA  (mfred@amug.org)
  22440. =========================================================================
  22441. Date:         Sat, 19 Nov 1994 21:48:01 -0700
  22442. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22443. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22444. From:         Ralph Risch <risch@ALUMNI.CS.COLORADO.EDU>
  22445. Subject:      Re: Dynamic Terminologies
  22446.  
  22447. Jon Pugh <jonpugh@NETCOM.COM> writes:
  22448.  
  22449. >>Also, as we were discussing a few days ago, Quark is the only app I know
  22450. which supports dynamic terminologies, but I have yet to see an extension
  22451. which has a dictionary.<<
  22452.  
  22453. Howdy, John -
  22454.  
  22455.    There are several XTensions that I know of which have dictionaries; Em
  22456. Software's XData, alap's Script Glue XT, some of the Scitex XTensions,
  22457. and our own BeyondMeasure XTension. I'm sure that there are others,
  22458. especially considering the fact that I've probably only come into contact
  22459. with 1% of the available XTensions on the market.
  22460.  
  22461.    I agree that the behavior is annoying, though; I think that Apple
  22462. should coopt another one of the bits in the 'scsz' resource, which
  22463. would indicate that the terminologies be loaded in a fashion similar
  22464. to that used by code fragments, wherein the application can specify
  22465. which folders to search by means of alias resources.
  22466.  
  22467. Dave Shaver
  22468. Acrobyte R&D
  22469. =========================================================================
  22470. Date:         Sat, 19 Nov 1994 21:49:38 -0800
  22471. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22472. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22473. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  22474. Subject:      Re: Buyer's Remorse
  22475.  
  22476. >Lawrence D'Oliveiro wrote, back when I meant to reply originally:
  22477. >
  22478. >>>What exactly happened when you tried moving stuff to/from the desktop?
  22479. >
  22480. >As best as I can remember, the icon just snapped right back to where it
  22481. >started. I didn't notice this happening with dragging between other
  22482. >folders. But, I didn't mess with it for long.
  22483. >
  22484. >So, do we have any concensus yet on whether there is enough difference
  22485. >between Finder 7.1.3 and 7.1.4 to make it not work? (I'm not sure I want
  22486. >to be the one to experiment again, after getting that one alarming
  22487. >message. Did anyone see any merit in those prophesies of doom?)
  22488.  
  22489. The difference between Finder 7.1.3 and 7.1.4 is minute, and not
  22490. significant to drag and drop.  Under System versions prior to 7.5, either
  22491. of those Finder's requires an extension called "Dragging Enabler" to fix up
  22492. the Finder dragging you're having trouble with (the fix is included in
  22493. System 7.5).
  22494.  
  22495.    --John
  22496.  
  22497. --
  22498. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  22499. =========================================================================
  22500. Date:         Sat, 19 Nov 1994 21:49:48 -0800
  22501. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22502. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22503. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  22504. Subject:      Re: FMP AE open with password
  22505.  
  22506. >>I finaly got it, mayby it an FAQ but here it is anyway
  22507. >>
  22508. >>Thit is the way to open a file from Userland Frontier with a password
  22509. >included
  22510. >>
  22511. >>on open_pw (obj , password)
  22512. >>        return (appleEvent (FileMaker.id, 'aevt', 'odoc', '----', obj,
  22513. >>'pPAS',password))}
  22514. >
  22515. >Can I do the same or something similar with AppleScript, or does it only
  22516. >work with Frontier?
  22517.  
  22518. Here's the Dictionary for the open event, as found in FileMaker 2.1v3.  I
  22519. think that if you go not very far back in FileMaker versions, you won't
  22520. find the password parameter.
  22521.  
  22522. Open: Open an object
  22523.     Open  reference  -- The object to open
  22524.         [with password  string]  -- The password to use
  22525.  
  22526.  
  22527. [It's desirable to bring FileMaker to the front before doing this from
  22528. AppleScript, too, although not *quite* so critical as with Frontier.]
  22529.  
  22530.    --John
  22531.  
  22532. --
  22533. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  22534. =========================================================================
  22535. Date:         Sun, 20 Nov 1994 10:16:01 -0500
  22536. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22537. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22538. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  22539. Subject:      Re: CLEAN INSTALL
  22540.  
  22541. >> If you need instructions for a "clean install," feel free to e-mail me.
  22542. >
  22543. >I'm game...
  22544.  
  22545. Here goes...
  22546.  
  22547.    [] Back up your hard drive
  22548.    [] Back it up again (just to be sure :-)
  22549.    [] Run the Apple Disk First Aid (this is actually
  22550.       important -- System 7.5 is incompatable with
  22551.       certain older versions of some disk drivers)
  22552.  
  22553. The "barren ground approach":
  22554.  
  22555.    [] Now that you have two backups, reformat your harddrive
  22556.       with the newest driver, either from Apple or your
  22557.       third-party drive vendor (I have a new APS drive)
  22558.    [] Install on the clean drive
  22559.    [] Restore your backup
  22560.  
  22561. The traditional approach:
  22562.  
  22563.    [] Open System Folder
  22564.    [] Drag the files System and Finder to the trash
  22565.    [] Rename your System Folder to something like
  22566.       "Old Sys-stuff" (you'll need it to recover your
  22567.       old Preferences, etc.)
  22568.    [] Restart from your Install Disk 1
  22569.    [] Install as instructed
  22570.    [] Restart twice (for some reason, System 7.5 makes
  22571.       the Desktop rebuild twice)
  22572.    [] Get back to work
  22573.  
  22574. The Easter egg approach:
  22575.  
  22576.    [] Apparently, the 7.5 installer has a "clean install"
  22577.       option (finally!) I haven't used this, but the option
  22578.       is something like Command-Option-K
  22579.  
  22580.    Qapla',
  22581.    Clint
  22582.  
  22583.  
  22584.    Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  22585.    Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  22586.    Department of Molecular Biology | 609/258-5993
  22587.    Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  22588. =========================================================================
  22589. Date:         Mon, 21 Nov 1994 09:35:00 +1300
  22590. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22591. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22592. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  22593.               NZ" <LDO@WAIKATO.AC.NZ>
  22594. Subject:      Re: OSAX source??
  22595.  
  22596. David Jokinen <ground@INTERLINK.NET> writes:
  22597.  
  22598. >Yes, watch out! SetUpA4/RestoreA4 will let you GetPort, but you won't be
  22599. >getting the "real" thePort.
  22600.  
  22601. The QuickDraw globals are accessed via A5, not A4. Thus, whether you use
  22602. SetUpA4/RestoreA4 or not has nothing to do with whether you can access
  22603. QuickDraw globals or not.
  22604.  
  22605. >        theRealPort = **(GrafPtr **)CurrentA5;  // Get your caller's thePort
  22606.  
  22607. This is all GetPort does anyway.
  22608.  
  22609. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  22610. Computer Services Dept                     fax: +64-7-838-4066
  22611. University of Waikato            electric mail: ldo@waikato.ac.nz
  22612. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  22613. =========================================================================
  22614. Date:         Mon, 21 Nov 1994 09:38:00 +1300
  22615. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22616. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22617. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  22618.               NZ" <LDO@WAIKATO.AC.NZ>
  22619. Subject:      Re: buyer's remorse
  22620.  
  22621. "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
  22622.  
  22623. >--Lawrence D'Oliveiro wrote:
  22624. >>
  22625. >>"Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU> writes:
  22626. >>
  22627. >>>--Lawrence D'Oliveiro wrote:
  22628. >>>>
  22629. >>>>I'm sure Finder 7.1.3/7.1.4 with System 7.1 will work.
  22630. >>>
  22631. >>>    As am I, since this is what I'm running on my 8100.
  22632. >>
  22633. >>I doubt it. Power Macs need at least System 7.1.2, and they all come with
  22634. >>Finder 7.1.4 already.
  22635. >
  22636. >    True, but I was being a little less specific with the version
  22637. >numbers than you are. To me, System 7.1 encompases both 7.1.1 and 7.1.2
  22638. >because the really are the same overall system.
  22639.  
  22640. No they aren't. Thus, you need the Dragging Enabler to do inter-application
  22641. dragging with System 7.1 or 7.0.x, but you don't need it with 7.1.1 or later.
  22642. Also, PowerTalk 1.0 only works with 7.1.1 or 7.1.2.
  22643.  
  22644. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  22645. Computer Services Dept                     fax: +64-7-838-4066
  22646. University of Waikato            electric mail: ldo@waikato.ac.nz
  22647. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  22648. =========================================================================
  22649. Date:         Mon, 21 Nov 1994 09:45:00 +1300
  22650. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22651. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22652. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  22653.               NZ" <LDO@WAIKATO.AC.NZ>
  22654. Subject:      Re: Buyer's Remorse
  22655.  
  22656. Barry Chern <bchern@FREENET.COLUMBUS.OH.US> writes:
  22657.  
  22658. >Lawrence D'Oliveiro wrote, back when I meant to reply originally:
  22659. >
  22660. >>>What exactly happened when you tried moving stuff to/from the desktop?
  22661. >
  22662. >As best as I can remember, the icon just snapped right back to where it
  22663. >started. I didn't notice this happening with dragging between other
  22664. >folders. But, I didn't mess with it for long.
  22665.  
  22666. OK, it wasn't quite clear to me what you were trying to drag. Obviously you
  22667. weren't trying to move Finder icons from a folder/disk window to the desktop,
  22668. but dragging items out of an application window.
  22669.  
  22670. Besides the requirement for Finder 7.1.3/7.1.4, there are three parts to the
  22671. Drag Manager:
  22672.   * The "Macintosh Drag and Drop" extension itself. This is built into
  22673.     System 7.5; you only need it under earlier systems.
  22674.   * The "Dragging Enabler". This replaces your Process Manager with a version
  22675.     that supports inter-application dragging. This new Process Manager is
  22676.     built into System 7.1.1 or later, so you only need it on earlier systems.
  22677.   * The "Clipping Extension", which adds Drag Manager support to the Finder.
  22678.     You always need to install this.
  22679.  
  22680. Hope that makes things clearer...
  22681.  
  22682. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  22683. Computer Services Dept                     fax: +64-7-838-4066
  22684. University of Waikato            electric mail: ldo@waikato.ac.nz
  22685. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  22686. =========================================================================
  22687. Date:         Sun, 20 Nov 1994 16:53:46 -0600
  22688. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22689. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22690. From:         Steve Bryan <sbryan@MAROON.TC.UMN.EDU>
  22691. Subject:      Re: OSAX Source
  22692.  
  22693. >I guess no one works in pascal anymore.
  22694.  
  22695. I don't have the luxury of working much in pascal any more but my guess is
  22696. that you are trying to link with the "wrong" library. Which one is in your
  22697. project? If you are trying to use the standard "Runtime.Lib" you will
  22698. definitely get that error message. Make certain that you use
  22699. "DRVRRuntime.Lib".
  22700.  
  22701. |-------------------------------------------------------------|
  22702. Steve Bryan                Internet: sbryan@maroon.tc.umn.edu
  22703. Sexton Software          CompuServe: 76545,527
  22704. Minneapolis, MN 55415           Fax: (612) 929-1799
  22705. =========================================================================
  22706. Date:         Sun, 20 Nov 1994 18:09:20 -0800
  22707. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22708. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22709. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  22710. Subject:      Re: buyer's remorse
  22711.  
  22712. Lawrence D'Oliveiro writes:
  22713.  
  22714. >Thus, you need the Dragging Enabler to do inter-application
  22715. >dragging with System 7.1 or 7.0.x, but you don't need it with 7.1.1 or later.
  22716.  
  22717. I gave a different System cut-off point for Dragging Enabler in a recent
  22718. message.  Lawrence is correct.
  22719.  
  22720. [The easy way is to try it...if it works without the Dragging Enabler, it
  22721. works without the Dragging Enabler.]
  22722.  
  22723.    --John
  22724.  
  22725. --
  22726. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  22727. =========================================================================
  22728. Date:         Sun, 20 Nov 1994 21:52:04 -0500
  22729. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22730. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22731. From:         John Dunning <jdunning@PHOENIX.PRINCETON.EDU>
  22732. Subject:      Re: more Eudora
  22733.  
  22734. At 11/17/94, Dan Hinckley wrote:
  22735. > 1) This line in a 'Tell app "Eudora.." ' opens a reply message w/the msg
  22736. > body selected . Anyone tell me whether/how AS can be used to move the
  22737. > insertion point to the top or bottom of the quoted msg body? I haven't
  22738. > found an osax for it w/that capacity yet:
  22739. >
  22740. > >set theReply to reply message n of mailbox "test" with quoting and self
  22741.  
  22742. I believe there are osaxen that enable you to script keystrokes in apps
  22743. that aren't otherwise scriptable.  A single tap of the left-arrow will then
  22744. move the insertion point to the top of the message.  It is a little
  22745. annoying that the message body is always highlighted when you move the
  22746. insertion point into it.
  22747.  
  22748. However, in Eudora it is possible with AppleScript to move the insertion
  22749. point from one field to the next.  For instance, the following script sets
  22750. the To: field of a new message to a string, then sets the Subject: field to
  22751. the empty string, which effectively moves the insertion point to the
  22752. Subject: field without actually entering any text.
  22753.  
  22754. tell application "Eudora"
  22755.         set recipient to (get selected text)
  22756.         set newMessage to make new message at end of mailbox "Out" of mail
  22757. folder ""
  22758.         set field "To:" of newMessage to recipient
  22759.         set field "Subject:" of newMessage to ""
  22760. end tell
  22761.  
  22762.  
  22763. John
  22764.  
  22765. ______________________________________________________________________________
  22766. John Dunning                                    jdunning@phoenix.princeton.edu
  22767. =========================================================================
  22768. Date:         Mon, 21 Nov 1994 12:26:38 +0900
  22769. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22770. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22771. From:         Seiji Hayashi <g44402a@NUCC.CC.NAGOYA-U.AC.JP>
  22772. Subject:      Re: [Q}Applescript FAQs
  22773.  
  22774. Dear Matthew
  22775.         Thank you for your response. It was a great help. I really
  22776. appreciate it!!
  22777.  
  22778. --------------------------------------------
  22779. Seiji Hayashi (g44402a@nucc.cc.nagoya-u.ac.jp)
  22780. Department of Earth and Planetary Sciences
  22781. School of Science,Nagoya University
  22782. Furo-cho  Chikusa-ku
  22783. Nagoya 464-01 Japan
  22784. --------------------------------------------
  22785. =========================================================================
  22786. Date:         Mon, 21 Nov 1994 00:09:06 -0500
  22787. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22788. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22789. From:         Clinton MacDonald <clint@PHOENIX.PRINCETON.EDU>
  22790. Subject:      Scriptable Finder -- not recording?
  22791.  
  22792. Friends:
  22793.  
  22794.    Recently, while trying to write a Finder AppleScript, I noticed that
  22795. turning on "record" did not record any of my actions in the Finder. Well,
  22796. it used to work.... Before I start in on the Extension Conflict Shuffle
  22797. (TM), I wonder whether anyone else has encountered this problem?
  22798.  
  22799.    Clint
  22800.  
  22801.  
  22802.    Dr. Clinton C. MacDonald        | clint@phoenix.princeton.edu
  22803.    Howard Hughes Medical Institute | cmacdonald@watson.princeton.edu
  22804.    Department of Molecular Biology | 609/258-5993
  22805.    Princeton, NJ 08544-1014        | 609/258-1704 (FAX)
  22806. =========================================================================
  22807. Date:         Mon, 21 Nov 1994 01:03:05 -0500
  22808. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22809. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22810. From:         "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
  22811. Subject:      Any way to coerce a string into a date object?
  22812.  
  22813. Hello,
  22814.  
  22815. I'm working on a script to process a GopherSurfer log file. The log file is
  22816. plain ASCII and uses standard tab-delimited records. One of the fields in a
  22817. transaction record is an abbreviated long date (for example, "Sat, Oct 15,
  22818. 1994 2:44 PM"). I would like to coerce this string into a date object so
  22819. that I can use Lawrence D'Oliveiro's nifty Date Calculations OSAX to
  22820. perform wonderful and amazing feats with my data.
  22821.  
  22822. AppleScript does not seem to be able to do the coercion trick; with the
  22823. following scriptlet, I get an Execution Error "Can't make 'Sat, Oct 15,
  22824. 1994 2:44 PM' into a date."
  22825.  
  22826. --This won't work...
  22827. set dateString to "Sat, Oct 15, 1994 2:44 PM"
  22828. set dateObject to dateString as date
  22829. (* and then on with the fun stuff... *)
  22830.  
  22831. Any suggestions on how else to convert a string to a date? Is this possible?
  22832.  
  22833. Thanks for any tips,
  22834. Brent Sleeper
  22835.  
  22836.  
  22837. --
  22838. M. Brent Sleeeper -- bsleeper@flightpath.com
  22839.   Flightpath Communications -- info@flightpath.com
  22840. =========================================================================
  22841. Date:         Mon, 21 Nov 1994 01:07:41 -0500
  22842. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22843. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22844. From:         "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
  22845. Subject:      ClarisWorks 3.0 scriptable?
  22846.  
  22847. Hello,
  22848.  
  22849. Can anyone confirm or deny that ClarisWorks 3.0 is scriptable? I assume
  22850. not, as the product description sheet made no mention of AppleScript (or my
  22851. eyes overlooked it!).
  22852.  
  22853. For those of you that have scripted MacWrite Pro and/or WordPerfect, how
  22854. well do you think scripting has been implemented?
  22855.  
  22856. Thanks,
  22857. Brent Sleeper
  22858.  
  22859.  
  22860. --
  22861. M. Brent Sleeeper -- bsleeper@flightpath.com
  22862.   Flightpath Communications -- info@flightpath.com
  22863. =========================================================================
  22864. Date:         Mon, 21 Nov 1994 14:18:13 +0800
  22865. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22866. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22867. From:         Craig Richmond <craig@ECEL.UWA.EDU.AU>
  22868. Subject:      Re: ClarisWorks 3.0 scriptable?
  22869.  
  22870. At 2:07 PM 21/11/94, M. Brent Sleeper wrote:
  22871. >Can anyone confirm or deny that ClarisWorks 3.0 is scriptable? I assume
  22872. >not, as the product description sheet made no mention of AppleScript (or my
  22873. >eyes overlooked it!).
  22874.  
  22875. At a recent product demonstration, I asked the man from Claris Australia
  22876. and he stated that ClarisWorks 3.0 still only supported the core events.
  22877.  
  22878. If it is anything like 2.1, I expect this means that if you send it any
  22879. other events, it is likely to explode on you.  ClarisWorks 2.1 had a
  22880. moderate sized dictionary from memory.  Just lots of it didn't work.
  22881.  
  22882. Craig
  22883.  
  22884. --
  22885. Craig Richmond, Computer Officer, ECEL Computing Services  +61 9 380 1405
  22886. The University of Western Australia      or 380 3860 Email for FAX Number
  22887. craig@ecel.uwa.edu.au Dvorak Keyboards RULE!  "Messes are only acceptable
  22888. if users make them.  Applications aren't allowed this freedom" I.M.VI 2-4
  22889. =========================================================================
  22890. Date:         Mon, 21 Nov 1994 02:47:39 -0500
  22891. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22892. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22893. From:         Barry Chern <bchern@FREENET.COLUMBUS.OH.US>
  22894. Subject:      Re: buyer's remorse
  22895. In-Reply-To:  <199411210504.AAA17159@acme.freenet.columbus.oh.us>
  22896.  
  22897. >>Lawrence D'Oliveiro writes:
  22898. >>
  22899. >>>>What exactly happened when you tried moving stuff to/from the desktop?
  22900. >>
  22901. >>As best as I can remember, the icon just snapped right back to where it
  22902. >>started. I didn't notice this happening with dragging between other
  22903. >>folders. But, I didn't mess with it for long.
  22904. >
  22905. >OK, it wasn't quite clear to me what you were trying to drag. Obviously you
  22906. >weren't trying to move Finder icons from a folder/disk window to the desktop,
  22907. >but dragging items out of an application window.
  22908.  
  22909. I don't know why that seems obvious from what I wrote, but it's not true.
  22910. I was trying to move Finder icons from a folder/disk window to the
  22911. desktop, and vice-versa.
  22912.  
  22913. Barry
  22914. =========================================================================
  22915. Date:         Mon, 21 Nov 1994 00:30:51 -0800
  22916. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22917. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22918. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  22919. Subject:      Re: Any way to coerce a string into a date object?
  22920.  
  22921. >Hello,
  22922. >
  22923. >I'm working on a script to process a GopherSurfer log file. The log file is
  22924. >plain ASCII and uses standard tab-delimited records. One of the fields in a
  22925. >transaction record is an abbreviated long date (for example, "Sat, Oct 15,
  22926. >1994 2:44 PM"). I would like to coerce this string into a date object so
  22927. >that I can use Lawrence D'Oliveiro's nifty Date Calculations OSAX to
  22928. >perform wonderful and amazing feats with my data.
  22929. >
  22930. >AppleScript does not seem to be able to do the coercion trick; with the
  22931. >following scriptlet, I get an Execution Error "Can't make 'Sat, Oct 15,
  22932. >1994 2:44 PM' into a date."
  22933. >
  22934. >--This won't work...
  22935. >set dateString to "Sat, Oct 15, 1994 2:44 PM"
  22936. >set dateObject to dateString as date
  22937. >(* and then on with the fun stuff... *)
  22938. >
  22939. >Any suggestions on how else to convert a string to a date? Is this possible?
  22940.  
  22941. Try
  22942.  
  22943. set dateString to "Sat, Oct 15, 1994 2:44 PM"
  22944. set dateObject to date dateString
  22945.  
  22946.  
  22947. (or leave out the dateString object altogether, if that's convenient).
  22948.  
  22949. You'll have to experiment to see just how far the system will go in
  22950. interpreting not-quite-right date strings...it works pretty hard, as seen
  22951. by the fact that it manages this one:
  22952.  
  22953.  "10'15, 1994 2:44 PM" and even this one  "10+15, 1994 2*44 PM"
  22954.  
  22955.    --John
  22956.  
  22957. --
  22958. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  22959. =========================================================================
  22960. Date:         Mon, 21 Nov 1994 00:30:55 -0800
  22961. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22962. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22963. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  22964. Subject:      Re: ClarisWorks 3.0 scriptable?
  22965.  
  22966. >At 2:07 PM 21/11/94, M. Brent Sleeper wrote:
  22967. >>Can anyone confirm or deny that ClarisWorks 3.0 is scriptable? I assume
  22968. >>not, as the product description sheet made no mention of AppleScript (or my
  22969. >>eyes overlooked it!).
  22970. >
  22971. >At a recent product demonstration, I asked the man from Claris Australia
  22972. >and he stated that ClarisWorks 3.0 still only supported the core events.
  22973.  
  22974. And by "core", I think he meant "required"..."just the core events" can do
  22975. quite a lot.
  22976.  
  22977. >If it is anything like 2.1, I expect this means that if you send it any
  22978. >other events, it is likely to explode on you.  ClarisWorks 2.1 had a
  22979. >moderate sized dictionary from memory.  Just lots of it didn't work.
  22980.  
  22981. It's called bug fix by specification change.  --John
  22982.  
  22983. --
  22984. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  22985. =========================================================================
  22986. Date:         Mon, 21 Nov 1994 12:32:51 +0000
  22987. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22988. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  22989. From:         David Davies <d.a.davies@BHAM.AC.UK>
  22990. Subject:      PowerTalk and Applescript (groan, yes again!)
  22991.  
  22992. OK, I know it's everyone's least favorite subject but could someone one
  22993. update me on the current state of affairs with PowerTalk scripting. I want to
  22994. be able to filter my incomming email for instance.
  22995.  
  22996. I seem to remember hearing about a commercial package called something like
  22997. 'Power Rules' that allows Applescript access to most of PowerTalk's
  22998. functionality? Anyone know where I can get a copy from?
  22999.  
  23000. I'm not sure where the responsibility lies for Applescript-aware PowerTalk
  23001. services. Is it with Apple to extend the Finders Applescript awareness to
  23002. encompass PT or is it with the 3rd party developers like Star Nine who make
  23003. the CSAMs?
  23004.  
  23005. Thanks,
  23006.  
  23007. David Davies
  23008. =========================================================================
  23009. Date:         Mon, 21 Nov 1994 10:19:39 -0600
  23010. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23011. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23012. From:         Fred Terry <pfterry@LKS.CSI.COM>
  23013. Subject:      Re: Kee's show and tell
  23014. In-Reply-To:  Your message of "Sat, 19 Nov 94 13:36:16 PST"
  23015.  
  23016. Brian,
  23017.  
  23018. >>Had to create a prefs file to store configuration data into. The ability of
  23019. >>HyperCard to remember stuff is quite nice. I needed to do a bunch of text
  23020. >>processing and I personally found the combination of AppleScript and no
  23021. >>place to store variables just too much. But the real kicker was what seemed
  23022. >>to be some sort of memory leak. It was a long time ago (in finger strokes)
  23023. >>that I attempted to bend FaceSpan to do my bidding. The creation cycle,
  23024. >>seemed slow and the debugging was non-existent.
  23025. >
  23026. >You don't have to have a prefs file, you can use properties.
  23027. >
  23028. >As to the leak, get version 1.0.1.
  23029.  
  23030. How do you get this? Is it part of the AppleScript Developer's Guide update?
  23031.  
  23032. Thanks.
  23033.  
  23034. pf
  23035.  
  23036.  
  23037.  
  23038.  
  23039.  
  23040. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  23041. Fred Terry, The Alta Group, pfterry@lks.csi.com, +1 913/841-1283
  23042. =========================================================================
  23043. Date:         Mon, 21 Nov 1994 16:26:51 GMT
  23044. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23045. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23046. From:         Dan Hinckley <dbh@GN.APC.ORG>
  23047. Subject:      Re: more Eudora
  23048.  
  23049. >> 1) This line in a 'Tell app "Eudora.." ' opens a reply message w/the msg
  23050. >> body selected . Anyone tell me whether/how AS can be used to move the
  23051. >> insertion point to the top or bottom of the quoted msg body? I haven't
  23052. >> found an osax for it w/that capacity yet:
  23053. >>
  23054. >> >set theReply to reply message n of mailbox "test" with quoting and self
  23055. >
  23056. John Dunning sez:
  23057. >I believe there are osaxen that enable you to script keystrokes in apps
  23058. >that aren't otherwise scriptable.
  23059.  
  23060. Anyone seen such a critter?
  23061. >
  23062. >However, in Eudora it is possible with AppleScript to move the insertion
  23063. >point from one field to the next.  For instance, the following script sets
  23064. >the To: field of a new message to a string, then sets the Subject: field to
  23065. >the empty string, which effectively moves the insertion point to the
  23066. >Subject: field without actually entering any text.
  23067. >_________________________________________________
  23068. >John Dunning                                    jdunning@phoenix.princeton.edu
  23069.  
  23070. I'd worked out the shift you describe. What I wanted to do was insert some
  23071. text at the beginning or end of the Reply w/o having to set the msgBody to
  23072. a variable and paste it back in, though that works just fine..
  23073. =========================================================================
  23074. Date:         Mon, 21 Nov 1994 11:42:45 -0500
  23075. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23076. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23077. From:         "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU>
  23078. Subject:      Enabling/Disabling Scripts in Script Menu
  23079.  
  23080. I've finished making an app of mine scriptable, and as part of
  23081. that effort I provide a "Scripts" menu which lists all scripts
  23082. found at launch time in a "Scripts" folder.  I foresee this
  23083. being used by our in-house development staff as a quick and
  23084. cost-effective way to write "plug-ins" for the app, and users
  23085. may well write scripts for themselves.
  23086.  
  23087. So far, so good.
  23088.  
  23089. I have been very very careful in the past development of this
  23090. app to make sure that menus enable/disable depending on whether
  23091. they are relevant at the moment.  But now I'm faced with considering
  23092. how the Scripts menu items (each of which represents a script)
  23093. should be grayed out.
  23094.  
  23095. Since the Scripts menu is built dynamically when the app is launched,
  23096. and because the app doesn't know what each script does (especially
  23097. those written by third parties), I need some dynamic way of
  23098. establishing the menu enable/disable rules.
  23099.  
  23100. I can think of several technical aspects of this challenge, and
  23101. there's also a user interface issue (that is, I see both a question
  23102. of "how do the scripts communicate with the app so appropriate
  23103. menu control is exercised" and "how do I describe this process to
  23104. a script writer? What hoops will he/she have to go through?").
  23105.  
  23106. It appears to me, from the few apps I've glanced at which have
  23107. Scripts menus, that they simply ignore this problem.
  23108.  
  23109. Has anyone a solid approach to this?  Does Apple have any human
  23110. interface guidelines on this?
  23111. =========================================================================
  23112. Date:         Mon, 21 Nov 1994 09:12:43 U
  23113. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23114. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23115. From:         Stephen Iremonger <stephen_iremonger@QM.CLARIS.COM>
  23116. Subject:      FMP and Passwords
  23117.  
  23118.         Reply to:   FMP and Passwords
  23119. To use AppleScript to open a FileMaker Pro dbase that has a password you use
  23120. the optional parameter 'with password'
  23121.  
  23122. e.g.
  23123.  
  23124. tell application "FileMaker Pro"
  23125.   open "fileAlias" with password "appropriatePassword"
  23126. end tell
  23127. =========================================================================
  23128. Date:         Mon, 21 Nov 1994 09:32:29 -0800
  23129. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23130. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23131. From:         Jerry Ballard <gqb@FARALLON.COM>
  23132. Subject:      Re: FMP and Passwords
  23133.  
  23134. As a point of interest, if you have 2 levels of access set up, one with a
  23135. password for administration, and the other with no password for general
  23136. limited access, FM presents you with a "enter password, or click OK for
  23137. limited access" dialog" upon opening.
  23138. I've found no way to script my way past this other than to set up a password
  23139. for the limited access level in ADDITION to a 'no password' access.
  23140. That way you can script for the desired access level, or open without a
  23141. password directly.
  23142.  
  23143. _______________________________________________________________________________
  23144.  
  23145.         Reply to:   FMP and Passwords
  23146. To use AppleScript to open a FileMaker Pro dbase that has a password you use
  23147. the optional parameter 'with password'
  23148.  
  23149. e.g.
  23150.  
  23151. tell application "FileMaker Pro"
  23152.   open "fileAlias" with password "appropriatePassword"
  23153. end tell
  23154. =========================================================================
  23155. Date:         Mon, 21 Nov 1994 10:35:18 -0800
  23156. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23157. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23158. From:         Leonard Rosenthol <leonardr@NETCOM.COM>
  23159. Subject:      Re: Enabling/Disabling Scripts in Script Menu
  23160.  
  23161. At 8:42 AM 11/21/94, Dana E. Cartwright 315-442-9104 wrote:
  23162. >I have been very very careful in the past development of this
  23163. >app to make sure that menus enable/disable depending on whether
  23164. >they are relevant at the moment.  But now I'm faced with considering
  23165. >how the Scripts menu items (each of which represents a script)
  23166. >should be grayed out.
  23167. >
  23168. >It appears to me, from the few apps I've glanced at which have
  23169. >Scripts menus, that they simply ignore this problem.
  23170. >
  23171.         Ignore the problem - it's MUCH easier!
  23172.  
  23173.         If you "must" do it, then the correct approach IMHO would be to
  23174. send an "event" (OSAExecuteEvent) to the script which can then return a
  23175. boolean responce of enable/disable.  The only disadvantage to this approach
  23176. is speed - if you've got a LOT of scripts, then it is going to a LONG time
  23177. for menus to drop!
  23178.  
  23179.  
  23180. Leonard
  23181.  
  23182. -----------------------------------------------------------------------------
  23183. Leonard Rosenthol                       Internet:       leonardr@netcom.com
  23184. Director of Engineering                 AppleLink:      MACgician
  23185. Aladdin Systems, Inc.                   GEnie:          MACgician
  23186. =========================================================================
  23187. Date:         Mon, 21 Nov 1994 11:40:19 -0800
  23188. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23189. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23190. From:         "Klaus P. Fechner" <klaus@FORSYTHE.STANFORD.EDU>
  23191. Subject:      Re: Buyer's Remorse
  23192.  
  23193. >>Lawrence D'Oliveiro wrote, back when I meant to reply originally:
  23194. >>
  23195. >>>>What exactly happened when you tried moving stuff to/from the desktop?
  23196. >>
  23197. >>As best as I can remember, the icon just snapped right back to where it
  23198. >>started. I didn't notice this happening with dragging between other
  23199. >>folders. But, I didn't mess with it for long.
  23200. >>
  23201.  
  23202. ....
  23203.  
  23204. >The difference between Finder 7.1.3 and 7.1.4 is minute, and not
  23205. >significant to drag and drop.  Under System versions prior to 7.5, either
  23206. >of those Finder's requires an extension called "Dragging Enabler" to fix up
  23207. >the Finder dragging you're having trouble with (the fix is included in
  23208. >System 7.5).
  23209.  
  23210. Thanks for the hints! The Dragging Enabler fell victim to my unsuccessful
  23211. attempt at getting 7.5 to run on my SE (it worked, but not with Compact
  23212. Virtual). After reading Jeremy P. Howard's reply to this list I put it back
  23213. in with 7.1 and tried it sucessfully with both Finder 7.1.3 and 7.1.4.
  23214. Drag/drop works (again) as expected. Thanks very much!
  23215.  
  23216. Klaus
  23217.  
  23218. -------------------------------------------------------------
  23219. Klaus P. Fechner, Stanford University/VAMC Palo Alto, CA, USA
  23220. =========================================================================
  23221. Date:         Tue, 22 Nov 1994 08:49:00 +1300
  23222. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23223. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23224. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  23225.               NZ" <LDO@WAIKATO.AC.NZ>
  23226. Subject:      Re: Enabling/Disabling Scripts in Script Menu
  23227.  
  23228. "Dana E. Cartwright 315-442-9104" <decartwr@MAILBOX.SYR.EDU> writes:
  23229.  
  23230. >Since the Scripts menu is built dynamically when the app is launched,
  23231. >and because the app doesn't know what each script does (especially
  23232. >those written by third parties), I need some dynamic way of
  23233. >establishing the menu enable/disable rules.
  23234. >
  23235. >I can think of several technical aspects of this challenge, and
  23236. >there's also a user interface issue (that is, I see both a question
  23237. >of "how do the scripts communicate with the app so appropriate
  23238. >menu control is exercised" and "how do I describe this process to
  23239. >a script writer? What hoops will he/she have to go through?").
  23240.  
  23241. Remember that you can do a lot of things with a script besides running it:
  23242. you can invoke specific handlers by name, and you can get/set properties.
  23243.  
  23244. So what you need to do is define a standard set of handlers and/or properties,
  23245. which return information that your application can interrogate to determine
  23246. whether the script is currently applicable or not.
  23247.  
  23248. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  23249. Computer Services Dept                     fax: +64-7-838-4066
  23250. University of Waikato            electric mail: ldo@waikato.ac.nz
  23251. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  23252. =========================================================================
  23253. Date:         Tue, 22 Nov 1994 08:55:00 +1300
  23254. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23255. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23256. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  23257.               NZ" <LDO@WAIKATO.AC.NZ>
  23258. Subject:      Re: ClarisWorks 3.0 scriptable?
  23259.  
  23260. "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM> asks:
  23261.  
  23262. >For those of you that have scripted MacWrite Pro and/or WordPerfect, how
  23263. >well do you think scripting has been implemented?
  23264.  
  23265. I've done a little MacWrite Pro scripting. It's pretty basic: you can get and
  23266. set the selection, insert text, select menu items, apply styles, do some
  23267. search/replace, do a mail merge, and not much else. It doesn't support the
  23268. Object Model, which is a major limitation.
  23269.  
  23270. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  23271. Computer Services Dept                     fax: +64-7-838-4066
  23272. University of Waikato            electric mail: ldo@waikato.ac.nz
  23273. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  23274. =========================================================================
  23275. Date:         Mon, 21 Nov 1994 12:14:47 -0800
  23276. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23277. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23278. From:         Kevin Purcell <kevinpu@ATM.COM>
  23279. Subject:      Re: Enabling/Disabling Scripts in Script Menu
  23280.  
  23281. >I've finished making an app of mine scriptable, and as part of
  23282. >that effort I provide a "Scripts" menu which lists all scripts
  23283. >found at launch time in a "Scripts" folder.  I foresee this
  23284. >being used by our in-house development staff as a quick and
  23285. >cost-effective way to write "plug-ins" for the app, and users
  23286. >may well write scripts for themselves.
  23287. >
  23288. >So far, so good.
  23289. >
  23290. >I have been very very careful in the past development of this
  23291. >app to make sure that menus enable/disable depending on whether
  23292. >they are relevant at the moment.  But now I'm faced with considering
  23293. >how the Scripts menu items (each of which represents a script)
  23294. >should be grayed out.
  23295. >
  23296. >Since the Scripts menu is built dynamically when the app is launched,
  23297. >and because the app doesn't know what each script does (especially
  23298. >those written by third parties), I need some dynamic way of
  23299. >establishing the menu enable/disable rules.
  23300. >
  23301. >I can think of several technical aspects of this challenge, and
  23302. >there's also a user interface issue (that is, I see both a question
  23303. >of "how do the scripts communicate with the app so appropriate
  23304. >menu control is exercised" and "how do I describe this process to
  23305. >a script writer? What hoops will he/she have to go through?").
  23306. >
  23307. >It appears to me, from the few apps I've glanced at which have
  23308. >Scripts menus, that they simply ignore this problem.
  23309. >
  23310. >Has anyone a solid approach to this?  Does Apple have any human
  23311. >interface guidelines on this?
  23312.  
  23313. As the script is run idependently of the state of the app there is no
  23314. general way of determining which ones should be grayed out. How can the app
  23315. writer know which ones would be valid. You could of course define all the
  23316. different possible states as some enumeration. Then when you start up each
  23317. script would be sent a command asking which states it used. Then use this
  23318. information to grey out their entry. Its a wild idea and totally
  23319. unpractical, IMHO!
  23320.  
  23321. In general when providing script menus developers have taken two approaches:
  23322.  
  23323. * Either they keep an internal data structure and add Add Script... and
  23324. Remove Script... to add the scripts from memory. Saving the alias to the
  23325. script files in their preferences. If they can't find the file the alias
  23326. represents then they don't show it in the list (or complain to the user
  23327. when they try to run it). Or keeping the 'scpt' resources in their
  23328. Preferences file (you would need to provide your app with a script editor
  23329. if you wanted to do this). You app is really attachable then.
  23330.  
  23331. * Choose a special folder (in your folder in the Preferences folder or the
  23332. application folder?) where the user places scripts to be executed. If the
  23333. scripts are there they appear in the menu.
  23334.  
  23335. The "lists all scripts found at launch time" is a serious loss. When the
  23336. user pulls down the menu should show the current set of scripts. Restarting
  23337. your app to add a script will be a big pain and won't be appraciated by the
  23338. users. Try one of the two techniques described above.
  23339.  
  23340. Kevin Purcell      Attachmate Corp        (206) 649-6489
  23341. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  23342. =========================================================================
  23343. Date:         Mon, 21 Nov 1994 15:15:02 -0500
  23344. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23345. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23346. From:         "David E. Heady" <DHeady@AOL.COM>
  23347. Subject:      Re: ClarisWorks 3.0 scriptable?
  23348.  
  23349. According to Claris, ClarisWorks doesn't want to include the overhead to make
  23350. it fully scriptable. They feel this is a feature that separates them (in a
  23351. positive manner) from MSWorks which is rotund with OLE and such. They feel
  23352. that the average CW user doesn't use AS much. I think they are right. I have
  23353. found that PreFab Player gives me as much if not greater access to CW
  23354. features that a scripting dictionary would. Try it.
  23355. DHeady
  23356. =========================================================================
  23357. Date:         Mon, 21 Nov 1994 15:26:28 -0500
  23358. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23359. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23360. From:         Ian McKirdy <mckirdy@CCRS.EMR.CA>
  23361. Subject:      List of remote Machines that are ON?
  23362.  
  23363. Maybe because it is monday but I can't see how to get a list of remote
  23364. machines such as one can see in the Chooser.  I have been through the
  23365. Language Guides and nothing seems to be capable of querying a folder that
  23366. is not mounted.  Quickeys will attempt to mount via Mounty any predefined
  23367. volumes whether the machine is turned on or not.  If the machine is off I
  23368. get a dialog box that I am getting tired of acknowledging.  If I could get
  23369. a List of remote machines I could then proceed to use predefined Quickeys
  23370. to mount the DropBoxes I need to access.
  23371.  
  23372. Any help is gratefully appreciated.
  23373.  
  23374.  
  23375.  
  23376. Ian McKirdy
  23377. Canada Centre Remote Sensing/Centre Canadien de T=E9l=E9d=E9tection
  23378. 588 Booth Street, # 346
  23379. Ottawa, Ontario
  23380. CANADA  K1A 0Y7
  23381. 613-947-1318
  23382. 613-947-1385   Fax
  23383. mckirdy@ccrs.emr.ca     Email
  23384. =========================================================================
  23385. Date:         Mon, 21 Nov 1994 12:23:54 -0800
  23386. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23387. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23388. From:         Kevin Purcell <kevinpu@ATM.COM>
  23389. Subject:      Re: I got this?
  23390.  
  23391. >For light reading:  "The Unix Haters Handbook"  [yes, the Unix members of
  23392. >the community are large contributors to the problem] Garfinkel, Weise &
  23393. >Strassmann (with an "anti-foreward" by Dennis Ritchie).  ISBN 1-56884-203-1
  23394.  
  23395. For those of you who don't know this is a collection of stuff from the
  23396. UNIX-HATERS mailing list out of MIT the home of the LISPers and "people who
  23397. never forgave the world for accepting Unix instead of ITS and C/C++ instead
  23398. of LISP".
  23399.  
  23400. Steve Strassmann is at Apple Cambridge contributing to Dylan.
  23401.  
  23402. An interesting book (which complains that C++ had no namespace control or
  23403. run time type information but by the time it was published C++ is speced to
  23404. have both -- I think this sums up C++!).
  23405.  
  23406. Its a shame AppleScript doesn't have handlers/procedures as first class
  23407. objects :-(
  23408.  
  23409. Kevin Purcell      Attachmate Corp        (206) 649-6489
  23410. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  23411. =========================================================================
  23412. Date:         Mon, 21 Nov 1994 12:43:37 -0800
  23413. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23414. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23415. From:         Kevin Purcell <kevinpu@ATM.COM>
  23416. Subject:      Re: Kee's show and tell & FaceSpan
  23417.  
  23418. >As to the leak, get version 1.0.1.
  23419.  
  23420. and Fred said:
  23421.  
  23422. >How do you get this? Is it part of the AppleScript Developer's Guide update?
  23423.  
  23424. We need more details on both of these!
  23425.  
  23426. FaceSpan 1.0 is riddled with bugs (mask problems with the first icon, icon
  23427. resources get duplicated, not deleting icon resources when you ask it to
  23428. delete them, problems passing parameters to handler (especially references
  23429. to object) dependent upon script location, insistence that "contents of
  23430. theObj" means the the same as theObj even when talking to record with a
  23431. contents label, applets bomb when too much data is added to a app property,
  23432. loss of indentation on printing, crazy font spacing, string overlaps on
  23433. printouts, incorrect highlighting in multiple selections, no way to change
  23434. the 8x8 alignment grid, distribution across and enclosing box leads to
  23435. bizzare results!, if a button is the default item then its a pain to align
  23436. on the grid, no memory of project window layout, big gray updates, FaceSpan
  23437. catches thrown errors even when you have an error handler in place then
  23438. continues the error to you, a save command when there are no changes move
  23439. the insertion point to the bottom of the script, modal dialogs really are
  23440. modal (you can't have a modal looking window for which you write your own
  23441. dialog handler -- makes progress dialogs tricky, bombs during window layout
  23442. on PPC (which is sensetive to memory problems), can't handle general
  23443. AppleEvents, building a project copies all the resources into the app
  23444. including a project's ckid resource (yes, I use source code control!),
  23445. etc).
  23446.  
  23447. I have a standing joke with a collegue here called "FaceSpan bug du jour".
  23448. I have been finding one or more per day for the last month or more.
  23449.  
  23450. So I beleive I could make use of 1.0.1!
  23451.  
  23452. If anyone at SDU is listening I would like to put FaceSpan 2.0 alpha
  23453. through the mangle too.
  23454.  
  23455. FaceSpan is an interesting concept but it ain't ready for prime time in
  23456. 1.0. Maybe 1.0.1 fixes the worse bugs. Remember in a commercial environment
  23457. we are out there competing Windows boxes with PowerBuilder and Visual
  23458. BASIC, which at least mature if rather dull development environments.
  23459.  
  23460. Kevin Purcell      Attachmate Corp        (206) 649-6489
  23461. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  23462. =========================================================================
  23463. Date:         Mon, 21 Nov 1994 17:47:01 -0600
  23464. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23465. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23466. From:         Dennis Whiteman <ultimate@MAIL.ICON.NET>
  23467. Subject:      Re(2): ClarisWorks 3.0 scriptable?
  23468.  
  23469. David E. Heady wrote on 11/20/94:
  23470.  
  23471. > They feel this is a feature that separates them
  23472. > (in a positive manner) from MSWorks which is
  23473. > rotund with OLE and such. They feel that the
  23474. > average CW user doesn't use AS much. I think
  23475. > they are right.
  23476.  
  23477. I disagree. If the state of Mac spreadsheets were such that Claris Resolve
  23478. and Lotus 1-2-3 were still around (and scriptable), I might tend to agree but
  23479. they aren't. Basically, if you want to do any work with a spreadsheet and
  23480. AppleScript, you're looking at Excel. I personally don't have the budget or
  23481. RAM for Excel if I want to pull data out of Filemaker Pro and generate a
  23482. chart. While I like ClarisWorks, if it continues like it is, I won't be
  23483. purchasing any more upgrades.
  23484.  
  23485. Version 3.0 is a joke for Mac users since it doesn't fully support Drag and
  23486. Drop and uses a proprietary help system over Apple Guide. I like 2.1 fine,
  23487. but the two questions I'm asking before buying any software these days is: 1)
  23488. is it native for PowerMacs or is a native upgrade planned (ClarisWorks met
  23489. this criteria quite well) and 2) is it scriptable? That said, I hope they'll
  23490. reconsider, but if what you're saying is true, we can pretty much abandon any
  23491. hope of OpenDoc support/usage in ClarisWorks since that requires some
  23492. scripting support.
  23493.  
  23494. Dennis L. Whiteman
  23495. THE ULTIMATE FREELANCER
  23496. =========================================================================
  23497. Date:         Tue, 22 Nov 1994 13:37:00 +1300
  23498. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23499. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23500. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  23501.               NZ" <LDO@WAIKATO.AC.NZ>
  23502. Subject:      Re: ClarisWorks 3.0 scriptable?
  23503.  
  23504. "David E. Heady" <DHeady@AOL.COM> writes:
  23505.  
  23506. >According to Claris, ClarisWorks doesn't want to include the overhead to make
  23507. >it fully scriptable. They feel this is a feature that separates them (in a
  23508. >positive manner) from MSWorks which is rotund with OLE and such. They feel
  23509. >that the average CW user doesn't use AS much. I think they are right. I have
  23510. >found that PreFab Player gives me as much if not greater access to CW
  23511. >features that a scripting dictionary would.
  23512.  
  23513. That's a shame, and not just because it's a self-fulfilling expectation.
  23514. Having an application which is scriptable, recordable and fully supports the
  23515. Object Model is *much* nicer than trying to stuff around with intricate
  23516. sequences of mouse clicks and keystrokes which will break when the next
  23517. version of the application makes any changes to its user-interface elements.
  23518.  
  23519. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  23520. Computer Services Dept                     fax: +64-7-838-4066
  23521. University of Waikato            electric mail: ldo@waikato.ac.nz
  23522. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  23523. =========================================================================
  23524. Date:         Mon, 21 Nov 1994 16:06:48 -0600
  23525. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23526. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23527. From:         Tim Guinn <tpguinn@UTXVMS.CC.UTEXAS.EDU>
  23528. Subject:      Help with 'event ScTIstdD' ?
  23529.  
  23530. Well, I=B9ve finally done it. I took a week off from work to try
  23531. and learn Applescript.  Right ;-) ... I know, I=B9m not going to
  23532. accomplish much. But just getting the chance to play around with
  23533. it is half the battle, for me.
  23534.  
  23535. Anyhow. I=B9m trying to run the Scriptable Apps Search droplet
  23536. that is included with Scriptable Apps Searcher package from
  23537. gaea.kgs.ukans.edu:
  23538.  
  23539.    /applescript/scripts/FinderScriptingToolkit.hqx
  23540.  
  23541. I=B9ve installed the GTQ Scripting Library in its original folder,
  23542. inside my Extensions/Scripting Additions folder. But when I
  23543. run the droplet, I get this message:
  23544.  
  23545. =B3<<script>> doesnt understand the <<event ScTIstdD>> message=B2
  23546.  
  23547. Which to me indicates that maybe I haven=B9t installed a necessary
  23548. OSAX correctly. Yes? No? Is it maybe because I=B9ve got the GTQ Lib
  23549. nested three levels down in the System? Even though it *is* inside
  23550. the Scripting Additions, inside Extensions?
  23551.  
  23552. Or am I going off on an unnecessary tangent?
  23553.  
  23554. =46WIW, I=B9m only up to chapter VII of Goodman=B9s _Complete AppleScript
  23555. Handbook_. I=B9m just playing with this particular script (Scriptable
  23556. Apps Searcher) to see how a more advanced package works.
  23557.  
  23558. Should I keep reading the book till I get to the point where this
  23559. kind of thing gets explained? 8-) I *would* kinda=B9 like to find all of
  23560. my scriptable apps...
  23561.  
  23562. TIA
  23563.  
  23564. -tpg
  23565. =========================================================================
  23566. Date:         Tue, 22 Nov 1994 13:45:00 +1300
  23567. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23568. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23569. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  23570.               NZ" <LDO@WAIKATO.AC.NZ>
  23571. Subject:      Re: Enabling/Disabling Scripts in Script Menu
  23572.  
  23573. Kevin Purcell <kevinpu@ATM.COM> writes:
  23574.  
  23575. >>I've finished making an app of mine scriptable, and as part of
  23576. >>that effort I provide a "Scripts" menu which lists all scripts
  23577. >>found at launch time in a "Scripts" folder.
  23578. ..
  23579. >>Since the Scripts menu is built dynamically when the app is launched,
  23580. >>and because the app doesn't know what each script does (especially
  23581. >>those written by third parties), I need some dynamic way of
  23582. >>establishing the menu enable/disable rules.
  23583.  
  23584. >* Choose a special folder (in your folder in the Preferences folder or the
  23585. >application folder?) where the user places scripts to be executed. If the
  23586. >scripts are there they appear in the menu.
  23587. >
  23588. >The "lists all scripts found at launch time" is a serious loss.
  23589.  
  23590. This is absolutely correct. A nicer approach is to check the modification
  23591. date of the folder when the user clicks in the menu bar (or hits a command-
  23592. key shortcut); if it has changed since you last checked, then you need to
  23593. rebuild the Scripts menu before the user gets a chance to select from it.
  23594.  
  23595. By the way, Leonard is probably right that any kind of enabled/disabled
  23596. checking is going to be slow. But that's no reason not to try it anyway,
  23597. if only to prove the point. :-)
  23598.  
  23599. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  23600. Computer Services Dept                     fax: +64-7-838-4066
  23601. University of Waikato            electric mail: ldo@waikato.ac.nz
  23602. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  23603. =========================================================================
  23604. Date:         Mon, 21 Nov 1994 20:14:18 -0800
  23605. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23606. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23607. From:         "Bruce B. Lacey (Bruce B. Lacey)" <blacey@CERF.NET>
  23608. Subject:      Re: Any way to coerce a string into a date object?
  23609.  
  23610. >Hello,
  23611. >
  23612. >I'm working on a script to process a GopherSurfer log file. The log file is
  23613. >plain ASCII and uses standard tab-delimited records. One of the fields in a
  23614. >transaction record is an abbreviated long date (for example, "Sat, Oct 15,
  23615. >1994 2:44 PM"). I would like to coerce this string into a date object so
  23616. >that I can use Lawrence D'Oliveiro's nifty Date Calculations OSAX to
  23617. >perform wonderful and amazing feats with my data.
  23618. >
  23619. >AppleScript does not seem to be able to do the coercion trick; with the
  23620. >following scriptlet, I get an Execution Error "Can't make 'Sat, Oct 15,
  23621. >1994 2:44 PM' into a date."
  23622. >
  23623. >--This won't work...
  23624. >set dateString to "Sat, Oct 15, 1994 2:44 PM"
  23625. >set dateObject to dateString as date
  23626. >(* and then on with the fun stuff... *)
  23627. >
  23628. >Any suggestions on how else to convert a string to a date? Is this possible?
  23629.  
  23630. Well close on the as date but you need to first tell Applescript to
  23631. interpret dateString as a date value by using the following statement...
  23632.  
  23633. set dateObject to date dateString
  23634.  
  23635. This completes the setting of dateObject to a date value by filling in any
  23636. missing parts of dateString.  Then of course you can use it as a normal
  23637. date value.
  23638.  
  23639. Have fun.   ;-)
  23640. =========================================================================
  23641. Date:         Mon, 21 Nov 1994 22:08:56 -0800
  23642. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23643. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23644. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  23645. Subject:      Re: ClarisWorks 3.0 scriptable?
  23646.  
  23647. >Lawrence D'Oliveiro says:
  23648. >
  23649. >I've done a little MacWrite Pro scripting. It's pretty basic: you can get and
  23650. >set the selection, insert text, select menu items, apply styles, do some
  23651. >search/replace, do a mail merge, and not much else. It doesn't support the
  23652. >Object Model, which is a major limitation.
  23653.  
  23654. Another way of looking at it is that it doesn't support the Object Model,
  23655. so it was possible to include the scripting which is there, within givens
  23656. of time and budget.  And the scripting which is there allows one to do
  23657. quite a bit...producing specially-formatted documents generally involves
  23658. preparing (by hand) a stationery document, and opening that stationery as
  23659. the arena into which the script puts the current data.
  23660.  
  23661. The rather amusing aspect is that the first scriptable (not "Scriptable",
  23662. since there was no 'aete') version was released very nearly the same day as
  23663. Apple's stealth release of AppleScript 1.0.  And Frontier glue was
  23664. available as of that release of MacWrite Pro.
  23665.  
  23666.    --John
  23667.  
  23668. --
  23669. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  23670. =========================================================================
  23671. Date:         Mon, 21 Nov 1994 22:50:04 -0800
  23672. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23673. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23674. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  23675. Subject:      Re: Help with 'event ScTIstdD' ?
  23676.  
  23677. >Well, I=B9ve finally done it. I took a week off from work to try
  23678. >and learn Applescript.  Right ;-) ... I know, I=B9m not going to
  23679. >accomplish much. But just getting the chance to play around with
  23680. >it is half the battle, for me.
  23681. >
  23682. >Anyhow. I=B9m trying to run the Scriptable Apps Search droplet
  23683. >that is included with Scriptable Apps Searcher package from
  23684. >gaea.kgs.ukans.edu:
  23685. >
  23686. >   /applescript/scripts/FinderScriptingToolkit.hqx
  23687. >
  23688. >I=B9ve installed the GTQ Scripting Library in its original folder,
  23689. >inside my Extensions/Scripting Additions folder. But when I
  23690. >run the droplet, I get this message:
  23691. >
  23692. >=B3<<script>> doesnt understand the <<event ScTIstdD>> message=B2
  23693. >
  23694. >Which to me indicates that maybe I haven=B9t installed a necessary
  23695. >OSAX correctly. Yes? No? Is it maybe because I=B9ve got the GTQ Lib
  23696. >nested three levels down in the System? Even though it *is* inside
  23697. >the Scripting Additions, inside Extensions?
  23698.  
  23699. Hmmm...I'm a little surprised, but yes...Scripting Additions seem to need
  23700. to be "loose" in the Scripting Additions folder, not nested at a lower
  23701. level.  Based on testing just now.  [Surprised, because recent portions of
  23702. Apple software have tended to follow the nests in the System Folder as far
  23703. down as necessary.]
  23704.  
  23705. What I do is apply a label to all non-Apple osaxen (so I can find them
  23706. quickly to get rid of them), and put the ones I might need into Scripting
  23707. Additions.
  23708.  
  23709.    --John
  23710.  
  23711. --
  23712. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  23713. =========================================================================
  23714. Date:         Tue, 22 Nov 1994 00:18:21 -0800
  23715. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23716. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23717. From:         Jon Pugh <jonpugh@NETCOM.COM>
  23718. Subject:      Re: Enabling/Disabling Scripts in Script Menu
  23719.  
  23720. Dana E. Cartwright <decartwr@MAILBOX.SYR.EDU> wrote:
  23721. >
  23722. >I've finished making an app of mine scriptable, and as part of
  23723. >that effort I provide a "Scripts" menu which lists all scripts
  23724. >found at launch time in a "Scripts" folder.  ...
  23725. >
  23726. >I have been very very careful in the past development of this
  23727. >app to make sure that menus enable/disable depending on whether
  23728. >they are relevant at the moment.  But now I'm faced with considering
  23729. >how the Scripts menu items (each of which represents a script)
  23730. >should be grayed out.
  23731. >
  23732. > ...
  23733. >
  23734. >It appears to me, from the few apps I've glanced at which have
  23735. >Scripts menus, that they simply ignore this problem.
  23736. >
  23737. >Has anyone a solid approach to this?  Does Apple have any human
  23738. >interface guidelines on this?
  23739.  
  23740. We did this in PhotoFlash and I never saw the need to enable or disable
  23741. script menu items.  We disable the entire menu when dialogs are up, but
  23742. otherwise you can always run a script.  Heck, even our scripts can run
  23743. scripts.  Perhaps you are refering to some sort of necessary state the
  23744. script might require.  I think the solution is to write more robust
  23745. scripts.  They should interogate the app and account for all possible
  23746. states.  Most of my scripts at least account for the way they were launched
  23747. (i.e. run versus open, run with no selection versus run with a selection,
  23748. etc).
  23749.  
  23750. I think that's a much better solution than enabling and disabling things.
  23751. We manage it by supporting DoScript to run scripts.  We record an alias to
  23752. the script, but I would like to make it relative to the Scripts folder, but
  23753. I don't know what AppleScript does.  There's another exercise for the
  23754. curious.  How does AppleScript parse a relative alias?
  23755.  
  23756. In addition, it is best to save the modified date for the folder and
  23757. rebuild your cache when it changes.  We only check this when becoming the
  23758. front application.  Since we do an heirarchical menu, it can take some
  23759. serious time to hit the disk and rebuild the whole thing.  It's a bit much
  23760. for doing when you click on the menu.
  23761.  
  23762. Lawrence D'Oliveiro <LDO@WAIKATO.AC.NZ> wrote:
  23763. >By the way, Leonard is probably right that any kind of enabled/disabled
  23764. >checking is going to be slow. But that's no reason not to try it anyway,
  23765. >if only to prove the point. :-)
  23766.  
  23767. It's not the running of the script that would delay it.  It's the loading,
  23768. both disk and AppleScript.  If you were to load all the scripts into OSAIDs
  23769. you would be able to send them messages right quick.  Donald's done some
  23770. tests with SpriteWorld using AppleScripts as collision detectors.  They
  23771. slow way down if you send any events outside of the application obviously,
  23772. but for direct dispatching of fast code and intrinsic AppleScript code,
  23773. it's plenty quick.
  23774.  
  23775. Jon
  23776. =========================================================================
  23777. Date:         Tue, 22 Nov 1994 00:21:40 -0800
  23778. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23779. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23780. From:         Brian Hall <mspace@NETCOM.COM>
  23781. Subject:      Re: MACSCRPT Digest - 20 Nov 1994 to 21 Nov 1994
  23782.  
  23783. Leonard said:
  23784. >        Ignore the problem - it's MUCH easier!
  23785. >
  23786. >        If you "must" do it, then the correct approach IMHO would be to
  23787. >send an "event" (OSAExecuteEvent) to the script which can then return a
  23788. >boolean responce of enable/disable.  The only disadvantage to this approach
  23789. >is speed - if you've got a LOT of scripts, then it is going to a LONG time
  23790. >for menus to drop!
  23791.  
  23792. Lawrence:
  23793. >So what you need to do is define a standard set of handlers and/or properties,
  23794. >which return information that your application can interrogate to determine
  23795. >whether the script is currently applicable or not.
  23796.  
  23797. Someone should try this and see how it goes.
  23798.  
  23799. Of course this begs the question- how does the *script* know if it should
  23800. be enaabled? By sending events back to the app for state information? (ie,
  23801. "hasSelection", "window of type foo is frontmost", etc.
  23802.  
  23803. __________________________________________________________________________
  23804. Mark/Space Softworks                                    voice 408-293-7299
  23805. 111 West Saint John, 2nd Floor                            fax 408-293-7298
  23806. San Jose, CA 95113                                        bbs 408-293-7290
  23807.  
  23808. Macintosh connectivity software:               Internet: mspace@netcom.com
  23809. Communicate, CTB Tools, PageNOW!                 AppleLink, AOL: MARKSPACE
  23810.                   Goodies at ftp.netcom.com in pub/mspace
  23811. =========================================================================
  23812. Date:         Tue, 22 Nov 1994 04:53:11 -0500
  23813. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23814. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23815. From:         "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
  23816. Subject:      GopherStat: a Utility for GopherSurfer and WebStat
  23817.  
  23818. Hello,
  23819.  
  23820. GopherStat is an AppleScript application that will transform a GopherSurfer
  23821. log file into a MacHTTP-style log file that is compatible with WebStat.
  23822.  
  23823. Why, do you ask? Well, so I can serve nifty HTML reports about my
  23824. gopher server from my web server! Seriously, there really aren't any
  23825. utilities out there (as far as I know) to analyze GopherSurfer logs.
  23826. WebStat does such a nice job at MacHTTP that I thought I'd let it
  23827. tackle GopherSurfer, too.
  23828.  
  23829. Caveat: it's butt-slow.
  23830.  
  23831. Required Components:
  23832.  
  23833. Choose Files & Folders osax - Mark Alldritt - alldritt@wimsey.com
  23834. Date Calculations osax - Lawrence D'Oliviera - ldo@waikato.ac.nz
  23835. File IO osax - Mark Alldritt - alldritt@wimsey.com
  23836.  
  23837. If you'd like a copy, either source or compiled, let me know, and I'll
  23838. e-mail it to you.
  23839.  
  23840. Brent Sleeper
  23841.  
  23842.  
  23843. --
  23844. M. Brent Sleeeper -- bsleeper@flightpath.com
  23845.   Flightpath Communications -- info@flightpath.com
  23846. =========================================================================
  23847. Date:         Tue, 22 Nov 1994 06:38:00 EST
  23848. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23849. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23850. From:         David Lloyd <100046.3512@COMPUSERVE.COM>
  23851. Subject:      Scriptable Finder & 7.1 ?
  23852.  
  23853. Scriptable Finder & 7.1 ?
  23854.  
  23855. Can  safely use Finder 7.5 and the Finder Scripting Extension with System 7.1 ?
  23856. I heard reference once to there being problems with this setup resulting in lost
  23857. files.
  23858.  
  23859. Regards,
  23860.  
  23861. Dave L.
  23862. =========================================================================
  23863. Date:         Tue, 22 Nov 1994 10:17:11 +0100
  23864. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23865. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23866. From:         Holger Skok <skok@ITWDS2.ENERGIETECHNIK.UNI-STUTTGART.DE>
  23867. Subject:      Re: ClarisWorks 3.0 scriptable?
  23868. In-Reply-To:  <9411220625.AA08468@itwds1.energietechnik.uni-stuttgart.de> from
  23869.               "Automatic digest processor" at Nov 22, 94 00:00:04 am
  23870.  
  23871. -----------------------------------------------------------------------
  23872. Holger Skok                                        Tel.: 0711-685-3230
  23873. Universitaet Stuttgart                             Fax.: 0711-685-3503
  23874. Institut fuer Thermodynamik und Waermetechnik
  23875. #
  23876. email.: skok@itwds2.energietechnik.uni-stuttgart.de
  23877. -----------------------------------------------------------------------
  23878. Content-Type: text
  23879. Content-Length: 143
  23880.  
  23881. Hi everyone,
  23882.  
  23883. PreFab Player sounds interesting. Does anyone have any more info on it?
  23884. (price, capabilities, available where, demo?)
  23885.  
  23886. Ciao,
  23887. HSK
  23888. =========================================================================
  23889. Date:         Tue, 22 Nov 1994 09:43:09 -0500
  23890. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23891. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23892. From:         "Michael D. Doub" <doub@DG-RTP.DG.COM>
  23893. Subject:      Scriptable Drawing Program
  23894.  
  23895. Does anyone know if there is a scriptable Drawing Program available?
  23896.  
  23897. I would like to try and create a visual representation of a call graph for
  23898. subroutines within a program.  I have other tools create a text file that
  23899. contains information like:
  23900.  
  23901. "AAA called by BBB CCC"
  23902. "BBB called by CCC DDD"
  23903.  
  23904. The goal is to create a picture to help illustrate the complexity of the
  23905. program.
  23906.  
  23907. An suggestions would be appreciated
  23908.  
  23909.         -- Mike
  23910.  
  23911.  
  23912.  
  23913. ---------------------------------------------------------------------
  23914. Michael D. Doub                   internet: doub@dg-rtp.dg.com
  23915. Data General Corporation          uucp:     ...!mcnc!rti!dg-rtp!doub
  23916. 62 Alexander Drive                voice:    (919) 248-5850
  23917. Research Triangle Park, NC 27709  fax:      (919) 248-6312
  23918. ---------------------------------------------------------------------
  23919. =========================================================================
  23920. Date:         Tue, 22 Nov 1994 08:43:59 CST
  23921. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23922. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23923. From:         Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
  23924. Subject:      Re: Scriptable Drawing Program
  23925.  
  23926. > Does anyone know if there is a scriptable Drawing Program
  23927. > available?
  23928.  
  23929. Canvas is scriptable although I've heard there are some problems (sorry
  23930. I can't be more specific.
  23931.  
  23932. Peter
  23933. =========================================================================
  23934. Date:         Tue, 22 Nov 1994 09:52:24 -0500
  23935. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23936. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23937. From:         "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
  23938. Subject:      Re: Scriptable Finder & 7.1 ?
  23939. In-Reply-To:  <no.id> from "David Lloyd" at Nov 22, 94 06:38:00 am
  23940.  
  23941. --David Lloyd wrote:
  23942. >
  23943. >Scriptable Finder & 7.1 ?
  23944. >
  23945. >Can safely use Finder 7.5 and the Finder Scripting Extension with System
  23946. >7.1 ?  I heard reference once to there being problems with this setup
  23947. >resulting in lost files.
  23948.  
  23949.     Well, there isn't a Finder 7.5, but you can quite safely use Finder
  23950. 7.1.3 or 7.1.4 along with Finder Scripting Extension under System 7.1.
  23951. I did this for quite some time on my Q80 before I upgraded it to an
  23952. 8100. You also need to make sure you have the 7.1.3 version of the
  23953. Network Extension.
  23954.  
  23955. -Hades
  23956. =========================================================================
  23957. Date:         Tue, 22 Nov 1994 10:22:20 +0000
  23958. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23959. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23960. From:         Gib Veconi <Gib_Veconi@SCP.COM>
  23961. Subject:      RE> PowerTalk and ApplescrI
  23962.  
  23963. On Tue, Nov 22, 1994, David Davies wrote:
  23964.  
  23965. >OK, I know it's everyone's least favorite subject but could someone one
  23966. >update me on the current state of affairs with PowerTalk scripting. I want to
  23967.  
  23968. >be able to filter my incomming email for instance.
  23969.  
  23970. There is a set of osaxen called GTQLib which contains some commands for using
  23971. PowerTalk (but none which can filter your email). The set is available at gaea.
  23972.  
  23973.  
  23974. There is also a company called Graphical Business Interfaces which publishes
  23975. AOCE tools for AppleScript. I've ordered, but not yet received, their
  23976. developer's kit. You can reach GBI at http://www.gbi.com/.
  23977.  
  23978. Gib
  23979.  
  23980. _____________________________________________________________________________
  23981.  
  23982.  
  23983.      _______    _______   ________
  23984.     |  _____\  |  _____\ |\  _____ \   Gib Veconi
  23985.     |\ \____|  |\ \____| \ \ \____\ \   System Analyst
  23986.     \ \_____ \ \ \ \      \ \  _____/    SCP Communications, Inc.
  23987.      \|_____\ \ \ \ \____  \ \ \____/     134 West 29th Street
  23988.       |\______/  \ \______\ \ \_\          New York, NY 10001
  23989.       \|______/   \|______|  \|_|                                 gib@scp.com
  23990. *
  23991. _____________________________________________________________________________
  23992. *
  23993. =========================================================================
  23994. Date:         Tue, 22 Nov 1994 07:24:17 -0800
  23995. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23996. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  23997. From:         Mark Alldritt <alldritt@WIMSEY.COM>
  23998. Subject:      Help with 'event ScTIstdD' ?
  23999.  
  24000. Hello,
  24001.  
  24002. > =B3<<script>> doesnt understand the <<event ScTIstdD>> message=B2
  24003.  
  24004. The ScTlstdD event is one of mine.  Try installing Script Tools
  24005. (specifically the Choose Files & Folders osax).
  24006.  
  24007. -Mark
  24008. =========================================================================
  24009. Date:         Tue, 22 Nov 1994 16:03:52 +0100
  24010. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24011. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24012. From:         Michael Bach <bach@SUN1.RUF.UNI-FREIBURG.DE>
  24013. Subject:      Re: Scriptable Drawing Program
  24014.  
  24015. Dear colleagues:
  24016.  
  24017. Michael D. Doub wrote:
  24018.  
  24019. >Does anyone know if there is a scriptable Drawing Program available?
  24020. >...
  24021.  
  24022. I tried Canvas (US version 3.5 and 3.5.2) with the examples on gaea.
  24023. Unfortunately, it crashes after a minute or so. Anyone to have more luck?
  24024. Or what am I doing wrong? Other scriptable applications and AppleScript
  24025. itself (vs 1.1) run fine.
  24026.  
  24027. Greetings, Michael.
  24028.  
  24029. Dr. Michael Bach, Dept. of Ophthalmology, University of Freiburg,
  24030. D-79106 Freiburg, Germany. ++049(761)270-4060. bach@sun1.ruf.uni-freiburg.de
  24031. =========================================================================
  24032. Date:         Tue, 22 Nov 1994 11:26:16 +0000
  24033. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24034. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24035. From:         Gib Veconi <Gib_Veconi@SCP.COM>
  24036. Subject:      Mac listserv s/w?
  24037.  
  24038. I think this may have been covered before, but is anybody aware of a Mac-based,
  24039.  scriptable, listerv program? Use of AOCE would be a plus.
  24040.  
  24041.  
  24042. _____________________________________________________________________________
  24043.  
  24044.      _______    _______   ________
  24045.     |  _____\  |  _____\ |\  _____ \   Gib Veconi
  24046.     |\ \____|  |\ \____| \ \ \____\ \   System Analyst
  24047.     \ \_____ \ \ \ \      \ \  _____/    SCP Communications, Inc.
  24048.      \|_____\ \ \ \ \____  \ \ \____/     134 West 29th Street
  24049.       |\______/  \ \______\ \ \_\          New York, NY 10001
  24050.       \|______/   \|______|  \|_|                                 gib@scp.com
  24051.  
  24052. _____________________________________________________________________________
  24053. =========================================================================
  24054. Date:         Tue, 22 Nov 1994 10:51:46 -0600
  24055. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24056. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24057. From:         Fred Terry <pfterry@LKS.CSI.COM>
  24058. Subject:      DayDoubler (humor)
  24059.  
  24060. For those of you waiting for the TimeDoubler osax that Dan Hinckley mentioned,
  24061. Connectrix has a new product......
  24062.  
  24063. **Brady Johnson** <bjohnson@halcyon.com> writes to announce a new
  24064.   product that might be of interest:
  24065.  
  24066.   DayDoubler is a new product from Connectrix that gives you those
  24067.   extra hours in each day that we've been asking for. Using
  24068.   sophisticated time mapping and compression techniques to double
  24069.   the number of hours in the day, DayDoubler gives you access to 48
  24070.   hours each day. With the shareware hack MaxDay, you can easily
  24071.   stretch your day to 60, 72, or even 96 hours! Connectrix warns
  24072.   that at the higher numbers DayDoubler becomes less stable and that
  24073.   you run the risk of a temporal crash in which everything from the
  24074.   beginning of time to the present would come crashing down around
  24075.   you, sucking you into a black hole.
  24076.  
  24077.   Should this occur, be sure to reboot with the shift key down.
  24078.  
  24079.  
  24080. copyright Adam Engst, TidBITS#253/21-Nov-94
  24081. =========================================================================
  24082. Date:         Tue, 22 Nov 1994 10:53:35 -0400
  24083. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24084. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24085. From:         macscrpt <dawnb@MOODYS.COM>
  24086. Subject:      Copy from In-box?
  24087.  
  24088. I'm looking for a way to copy messages from a PowerTalk in-box to a Mac
  24089. file-system using AppleScript so that messages from a listserv can be indexed
  24090. for searching. Any ideas?
  24091.  
  24092. Thanks.
  24093.  
  24094. Dave Young
  24095. =========================================================================
  24096. Date:         Tue, 22 Nov 1994 09:00:01 -0800
  24097. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24098. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24099. From:         Jeff Johnson <jkjonson@ZNET.COM>
  24100. Subject:      Re: FaceSpan 1.0.1 (was Kee's show & tell)
  24101.  
  24102. >>As to the leak, get version 1.0.1.
  24103. >
  24104. >and Fred said:
  24105. >
  24106. >>How do you get this? Is it part of the AppleScript Developer's Guide update?
  24107. >
  24108. >We need more details on both of these!
  24109.  
  24110. I got FaceSpan 1.0.1 with my recent purchase of the AppleScript Developer's
  24111. Kit.  I just started developing in FaceSpan, which I like very much.  I
  24112. suppose if I'd started with version 1.0 I wouldn't like it quite so much,
  24113. if your bug list is any indication!
  24114.  
  24115. I haven't had any major problems yet, aside from an irritating problem with
  24116. the FaceSpan app becoming hidden when I activate the Finder inside a
  24117. handler.  The handler exits with the Finder still the foreground
  24118. application.  I don't want FaceSpan to become hidden; I just want it to go
  24119. to the background, with the document window still open.  Very peculiar
  24120. problem!
  24121.  
  24122. Otherwise, my projects have run rather flawlessly.  I do have a couple of
  24123. gripes about the interface for scripts.  There really should be a
  24124. source-level debugger in the thing. I'd like to be able to move the cursor
  24125. directly to the first line of a handler.  I'd like to be able to watch
  24126. variables as scripts execute, set breakpoints, you know, the usual stuff.
  24127. Right now I write my scripts as separate chunks of routines in the Apple
  24128. Script Editor, debug them through repeated execution, and then move them
  24129. back into FaceSpan when they're solid enough.
  24130.  
  24131. I tried ScriptWizard, but it's abominable.  Great ideas, but incredibly
  24132. INCREDIBLY slow! I can't write a script longer than a single window-full
  24133. before it becomes too slow to use interactively.
  24134.  
  24135. I haven't done much scripting in HyperCard, though I've written a few
  24136. stacks over the years, for two reasons: color support is awful in
  24137. HyperCard, and I like to create colorful interfaces, and the script editor
  24138. doesn't support AppleScript standard formatting. I find color-coding my
  24139. scripts extremely useful; it helps me develop faster.  It's not just a
  24140. luxury for me.
  24141.  
  24142. Call SDU and get FaceSpan 1.0.1! 919-968-4567.
  24143.  
  24144.  
  24145.  
  24146. Jeff Johnson
  24147.  
  24148. --------------------------------------------------------------------------------
  24149.           Software Engineer, Charon, Inc., Cupertino, California, USA
  24150. --------------------------------------------------------------------------------
  24151. #include <std/disclaimer.h> /* Any opinions expressed in my posts and email   */
  24152.                             /* are mine alone, and do not necessarily reflect */
  24153.                             /* those of my employer or associates.            */
  24154. --------------------------------------------------------------------------------
  24155.           email: jkjonson@znet.com, jeffreyj8@aol.com, jkj@netcom.com
  24156. --------------------------------------------------------------------------------
  24157. =========================================================================
  24158. Date:         Tue, 22 Nov 1994 09:01:06 +0800
  24159. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24160. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24161. From:         Robert Hess <robert_hess@MACWEEK.ZIFF.COM>
  24162. Subject:      Re: Mac listserv s/w?
  24163.  
  24164.         Reply to:   RE>Mac listserv s/w?
  24165. I've been petitioning the author of MailShare, Glenn Anderson, to add
  24166. listserv capabilities to his program. He seems willing, if not awfully
  24167. busy already. You might want to send your own appeal to
  24168. glenn.anderson@stonebow.otago.ac.nz.
  24169.  
  24170. --------------------------------------
  24171. From: Gib Veconi
  24172. I think this may have been covered before, but is anybody aware of a
  24173. Mac-based, scriptable, listerv program? Use of AOCE would be a plus.
  24174. =========================================================================
  24175. Date:         Tue, 22 Nov 1994 12:41:38 -0700
  24176. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24177. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24178. From:         "Andy Cemelli (remote)" <ANDYC@WORDPERFECT.COM>
  24179. Subject:      Re: Scriptable Finder & 7.1 ? -Reply
  24180.  
  24181. If i want to take "XText" and turn it into "Text" what is the simplest
  24182. way.  Tried "Delete char 1 of variablename" didn't work.
  24183.  
  24184. thanks
  24185.  
  24186. Andrew Cemelli
  24187. Systems Engineer, Novell
  24188. (ANDYC@WordPerfect.com)
  24189. ---------------------------------------------------
  24190. The fact that I'm opinionated is not my employer's fault.
  24191. ---------------------------------------------------
  24192. =========================================================================
  24193. Date:         Tue, 22 Nov 1994 19:19:48 MET
  24194. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24195. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24196. From:         Axel Wilzopolski <aw@IX.DE>
  24197. Subject:      wait for end of application
  24198.  
  24199. I want an AppleScript-application to start another application and
  24200. after that waiting for the termination of that application before
  24201. any other thing is done in the applescript.
  24202.  
  24203. I think it should look like this:
  24204.  
  24205. ...things to do
  24206.  
  24207. tell application XXX
  24208.     activate
  24209. end tell
  24210.  
  24211. WaitForEndOfXXX()
  24212.  
  24213. ... more things to do
  24214.  
  24215.  
  24216. At the moment my script is starting the application but immediatly
  24217. continuing to execute the following AppleScript-commands.
  24218. Does anyone know a solution to my problem ?
  24219.  
  24220. Axel
  24221. --
  24222. Axel Wilzopolski
  24223. Verlag Heinz Heise GmbH & Co KG, Helstorferstr. 7, D-30625 Hannover, FRG
  24224. EMail: aw@ix.de
  24225. =========================================================================
  24226. Date:         Tue, 22 Nov 1994 13:08:27 +0000
  24227. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24228. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24229. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  24230. Subject:      Re: Mac listserv s/w?
  24231.  
  24232. >        Reply to:   RE>Mac listserv s/w?
  24233. >I've been petitioning the author of MailShare, Glenn Anderson, to add
  24234. >listserv capabilities to his program. He seems willing, if not awfully
  24235. >busy already. You might want to send your own appeal to
  24236. >glenn.anderson@stonebow.otago.ac.nz.
  24237. >
  24238. >--------------------------------------
  24239. >From: Gib Veconi
  24240.  
  24241.  
  24242. I asked the same of him about 3 weeks ago and got a negative from him, but
  24243. I will send again. Maybe if more people (hint hint) send in requests, he
  24244. would be willing!
  24245.  
  24246. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  24247.          www server: http://josaiah.sewanee.edu/          )
  24248. =========================================================================
  24249. Date:         Tue, 22 Nov 1994 13:16:13 +0000
  24250. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24251. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24252. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  24253. Subject:      Re: DayDoubler (humor)
  24254.  
  24255. I'm a bit confussed. What exactly *is* this TimeDoubler/ DayDoubler going to do?
  24256.  
  24257. >For those of you waiting for the TimeDoubler osax that Dan Hinckley mentioned,
  24258. >Connectrix has a new product......
  24259. >
  24260. >**Brady Johnson** <bjohnson@halcyon.com> writes to announce a new
  24261. >  product that might be of interest:
  24262. >
  24263. >  DayDoubler is a new product from Connectrix that gives you those
  24264. >  extra hours in each day that we've been asking for. Using
  24265. >  sophisticated time mapping and compression techniques to double
  24266. >  the number of hours in the day, DayDoubler gives you access to 48
  24267. >  hours each day. With the shareware hack MaxDay, you can easily
  24268. >  stretch your day to 60, 72, or even 96 hours! Connectrix warns
  24269. >  that at the higher numbers DayDoubler becomes less stable and that
  24270. >  you run the risk of a temporal crash in which everything from the
  24271. >  beginning of time to the present would come crashing down around
  24272. >  you, sucking you into a black hole.
  24273. >
  24274. >  Should this occur, be sure to reboot with the shift key down.
  24275. >
  24276. >
  24277. >copyright Adam Engst, TidBITS#253/21-Nov-94
  24278.  
  24279. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  24280.          www server: http://josaiah.sewanee.edu/          )
  24281. =========================================================================
  24282. Date:         Tue, 22 Nov 1994 14:30:38 -0500
  24283. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24284. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24285. From:         John Schettino <js12@GTE.COM>
  24286. Subject:      Re: wait for end of application
  24287.  
  24288. >I want an AppleScript-application to start another application and
  24289. >after that waiting for the termination of that application before
  24290. >any other thing is done in the applescript.
  24291. >
  24292. >I think it should look like this:
  24293. >
  24294. >...things to do
  24295. >
  24296. >tell application XXX
  24297. >    activate
  24298. >end tell
  24299. >
  24300. >WaitForEndOfXXX()
  24301. >
  24302. >... more things to do
  24303. >
  24304. >
  24305. >At the moment my script is starting the application but immediatly
  24306. >continuing to execute the following AppleScript-commands.
  24307. >Does anyone know a solution to my problem ?
  24308. >
  24309.  
  24310. Idle processing is the best way:
  24311.  
  24312. on run
  24313.         -- do your work
  24314.         tell application "XXX"
  24315.                 activate
  24316.         end tell
  24317. end run
  24318.  
  24319. on idle
  24320.         -- either use the scriptable finder
  24321.         -- or some other OSAX that lists processes (on gaea)
  24322.         tell application "Finder"
  24323.                 if name of processes does not contain "appName" then
  24324.                         doRest()
  24325.                         tell me to quit
  24326.                 else
  24327.                         return 1 -- check every second
  24328.                 end if
  24329.         end tell
  24330. end idle
  24331.  
  24332. on doRest()
  24333.         -- do the rest of your script
  24334. end doRest
  24335.  
  24336. on quit
  24337.         continue quit
  24338. end quit
  24339.  
  24340. Save as a stay-open app so the idle handler is executed.
  24341.  
  24342. Another way that eats CPU cycles is:
  24343.  
  24344. -- do your work
  24345. tell application "PPUI"
  24346.         activate
  24347. end tell
  24348.  
  24349. repeat
  24350.         tell application "Finder"
  24351.                 if name of processes does not contain "appName" then
  24352.                         exit repeat
  24353.                 end if
  24354.         end tell
  24355. end repeat
  24356. -- do the rest of your script
  24357.  
  24358. - john
  24359.  
  24360. -----------------------------------------
  24361. js12@gte.com             GTE Laboratories
  24362. John Schettino                Waltham, MA
  24363. =========================================================================
  24364. Date:         Tue, 22 Nov 1994 11:44:54 -0800
  24365. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24366. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24367. From:         Kee Nethery <kee@KAGI.COM>
  24368. Subject:      Re2: Mac listserv s/w?
  24369.  
  24370. >>I've been petitioning the author of MailShare, Glenn Anderson, to add
  24371. >>listserv capabilities to his program. He seems willing, if not awfully
  24372. >>busy already. You might want to send your own appeal to
  24373. >>glenn.anderson@stonebow.otago.ac.nz.
  24374. >
  24375. >I asked the same of him about 3 weeks ago and got a negative from him, but
  24376. >I will send again. Maybe if more people (hint hint) send in requests, he
  24377. >would be willing!
  24378.  
  24379. Folks, before we start to kill the goose that laid the golden egg, please
  24380. keep in mind that Glenn has a day job that occupies a large part of his
  24381. time. The demands of this new job caused him to issue MailShare as freeware
  24382. rather than pursue some kind of shareware or commercial arrangement. The
  24383. guy is swamped and just because we see him as our hero is no reason for him
  24384. to feel obligated to give up his life and devote it to our desires.
  24385.  
  24386. It might be more constructive if people started thinking about how they
  24387. could work with MailShare and Glenn Anderson to add the functionality
  24388. everyone desires. Is there a code wrangler out there who might be willing
  24389. to start with Glenn's source code (if he is willing to allow this) and
  24390. coordinate amongst coders in this group to add the functionality we desire?
  24391. Is there someone who would be willing to write an applet that watches
  24392. MailShare folders and moves mail around to create a listserv function? Is
  24393. there a group who wants to do an AppleScript applet that acts as a
  24394. listserv? ...
  24395.  
  24396. Let's be creative but lets don't lean on Glenn. If he has the time he'll do
  24397. it. If he doesn't he won't. If we piss him off in a big way, his support
  24398. for MailShare could stop here and now. Maybe someone can suggest some way
  24399. to meet Glenn's needs and ours without impacting Glenn's time?
  24400.  
  24401. Kee Nethery
  24402.  
  24403. PS: I too want MailShare to support Mailing Lists but I too do not have the
  24404. time.
  24405. =========================================================================
  24406. Date:         Wed, 23 Nov 1994 08:53:00 +1300
  24407. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24408. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24409. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  24410.               NZ" <LDO@WAIKATO.AC.NZ>
  24411. Subject:      Re: Enabling/Disabling Scripts in Script Menu
  24412.  
  24413. Brian Hall <mspace@NETCOM.COM> asks:
  24414.  
  24415. >Lawrence:
  24416. >>So what you need to do is define a standard set of handlers and/or properties,
  24417. >>which return information that your application can interrogate to determine
  24418. >>whether the script is currently applicable or not.
  24419. >
  24420. >Of course this begs the question- how does the *script* know if it should
  24421. >be enaabled? By sending events back to the app for state information? (ie,
  24422. >"hasSelection", "window of type foo is frontmost", etc.
  24423.  
  24424. Yup, that's the sort of thing I had in mind. Keep the application<->script
  24425. interface simple (perhaps just call a "are you enabled?" handler), and let
  24426. the script do all the complicated checks it has to. All the more reason to
  24427. support the Object Model!
  24428.  
  24429. (By the way, I thought I'd heard everything, until I read Jon's description of
  24430. collision detection handlers done in AppleScript. Tinkerability rules, OK!)
  24431.  
  24432. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  24433. Computer Services Dept                     fax: +64-7-838-4066
  24434. University of Waikato            electric mail: ldo@waikato.ac.nz
  24435. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  24436. =========================================================================
  24437. Date:         Wed, 23 Nov 1994 08:57:00 +1300
  24438. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24439. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24440. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  24441.               NZ" <LDO@WAIKATO.AC.NZ>
  24442. Subject:      Re: Scriptable Finder & 7.1 ?
  24443.  
  24444. David Lloyd <100046.3512@COMPUSERVE.COM> asks:
  24445.  
  24446. >Can  safely use Finder 7.5 and the Finder Scripting Extension with System 7.1 ?
  24447. >I heard reference once to there being problems with this setup resulting in
  24448.  lost
  24449. >files.
  24450.  
  24451. The Finder version is only 7.1.4, not 7.5. It's the same Finder that's been
  24452. shipping with all the Power Macs. Yes, I believe it is safe to use with 7.1.
  24453. There was mention of this on one of my CDs--might have been the AppleScript
  24454. one. The note said to be aware of the possibility of the lost data, yet at
  24455. the same time it said they didn't expect any problems. (I guess they were just
  24456. trying to cover themselves.)
  24457.  
  24458. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  24459. Computer Services Dept                     fax: +64-7-838-4066
  24460. University of Waikato            electric mail: ldo@waikato.ac.nz
  24461. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  24462. =========================================================================
  24463. Date:         Tue, 22 Nov 1994 11:08:16 -0800
  24464. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24465. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24466. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  24467. Subject:      Re: Enabling/Disabling Scripts in Script Menu
  24468.  
  24469. >
  24470. >In addition, it is best to save the modified date for the folder and
  24471. >rebuild your cache when it changes.  We only check this when becoming the
  24472. >front application.  Since we do an heirarchical menu, it can take some
  24473. >serious time to hit the disk and rebuild the whole thing.  It's a bit much
  24474. >for doing when you click on the menu.
  24475.  
  24476. I think you are doing it right...but only checking the modified date upon
  24477. activation leaves a small "hole":  consider a script which tells Finder to
  24478. move another script into the Scripts folder.
  24479.  
  24480. The solution?
  24481.  
  24482. If it hurts, don't do it.
  24483.  
  24484.    --John
  24485.  
  24486. --
  24487. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  24488. =========================================================================
  24489. Date:         Tue, 22 Nov 1994 14:16:40 -0800
  24490. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24491. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24492. From:         Ray Lam <lam@ISD.JPL.NASA.GOV>
  24493. Subject:      AppleScripting Tools
  24494.  
  24495. Hi,
  24496.  
  24497. I'm thinking of getting a copy of a scripting tool such as FrontMost,
  24498. ScriptWizard, TableServer or others. I need some recommandation on what to
  24499. get. Can anyone send
  24500.  me their experience or is there a newgroup which will discuss this topic.
  24501. Thanks in advance.
  24502.  
  24503. Ray Lam
  24504. lam@isd.jpl.nasa.gov
  24505. =========================================================================
  24506. Date:         Tue, 22 Nov 1994 16:19:02 -0500
  24507. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24508. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24509. From:         Chris LeCroy <lecroy@IDS.NET>
  24510. Subject:      Re: FMP Timeout Problem!
  24511.  
  24512. >>IUm working on a fairly large & involved AppleScript that manipulates
  24513. >>data in several FileMaker Pro files. It all seems to work really well, exc=
  24514. e=3D
  24515. >pt
  24516. >>for one niggling--and highly frustrating--problem:
  24517. >>
  24518. >>When I try to obtain the number of records in the current found set,
  24519. >>the event never resolves; instead, after a minute or so, I get an RAppleEv=
  24520. e=3D
  24521. >nt
  24522. >>timed outS dialog box.
  24523. >>
  24524. >>The problem line is:
  24525. >>
  24526. >>        set rCount to (Count of Layout 1 of Window 1 Class Record)--times
  24527. >>out
  24528. >>
  24529. >>IUve tried it with long time outs and it just doesnUt do any good.
  24530. >>
  24531. >>
  24532. >>Please help!!!
  24533. >>
  24534. >>
  24535.  
  24536. As Mark pointed out, the problem has to do with FileMaker replying to the
  24537. AppleEvent when the script is triggered rather than after it has completed.
  24538. The following is a function I use to avoid the problem:
  24539.  
  24540. on WaitUntilFileMakerIsReady(maxWaitSeconds)
  24541.         repeat
  24542.                 (*Exercise for the reader:
  24543.                          if elapsed time exceeds  maxWaitSeconds
  24544.                            return
  24545.                          end if
  24546.                 *)
  24547.                 try
  24548.                         tell application "FileMaker Pro 2.1v2"
  24549.                                 get version --any benign statement
  24550.                                 return
  24551.                         end tell
  24552.                 on error msg number errNum from errObj
  24553.                         if err =82 -1712 then -- errAETimeout =3D=3D -1712
  24554.                                 error msg number errNum from errObj
  24555.                         end if
  24556.                 end try
  24557.         end repeat
  24558. end WaitUntilFileMakerIsReady
  24559.  
  24560. Just insert WaitUntilFileMakerIsReady() calls immediately following your
  24561. =46ileMaker calls and it will simply loop until FileMaker is ready to receiv=
  24562. e
  24563. events again.  I think this works better than some of the other workarounds
  24564. I've seen posted, in that it actually waits until FileMaker responds and it
  24565. doesn't require any modifications to your FileMaker scripts.  It possible
  24566. that a some[one,thing] could sneak another call in between the
  24567. WaitUntilFileMakerIsReady() and your next FileMaker call, but the odds are
  24568. low and the other solutions have the same potential problem.
  24569.  
  24570. Hope this helps,
  24571.  
  24572. ---
  24573. Chris LeCroy - lecroy@ids.net
  24574. SouthBeach Software Corp.
  24575. =========================================================================
  24576. Date:         Wed, 23 Nov 1994 11:29:33 +1200
  24577. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24578. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24579. From:         Owen Watson <owen@RSNZ.GOVT.NZ>
  24580. Subject:      Re: RE> PowerTalk and ApplescrI
  24581.  
  24582. >There is also a company called Graphical Business Interfaces which publishes
  24583. >AOCE tools for AppleScript. I've ordered, but not yet received, their
  24584. >developer's kit. You can reach GBI at http://www.gbi.com/.
  24585.  
  24586. Be careful with GBI. I bought their TableIt! product, but it broke on a
  24587. IIsi. I returned it for a refund (the promised fix never arrived) and
  24588. despite numerous reminders have not received any refund or a reply.
  24589.  
  24590. Caveat emptor!
  24591.  
  24592. _________________________________________________________________________
  24593. Owen Watson, The Royal Society of NZ, PO Box 598, Wellington, New Zealand
  24594. Internet watson.o@rsnz.govt.nz  Ph: +64 4 472 7421 Fax: +64 4 473 1841
  24595. The gateway to New Zealand science: http://www.rsnz.govt.nz/
  24596. =========================================================================
  24597. Date:         Tue, 22 Nov 1994 16:05:16 -0500
  24598. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24599. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24600. From:         Bill Russell <bill.russell@PT.TERADYNE.COM>
  24601. Subject:      Date
  24602.  
  24603. Hi: I'm new to Applescript. Just as a test case, I tried to write a small
  24604. program to reboot a server every night at (say) midnight. I ran into a
  24605. problem... I can't convert a date to a script so I can look at it.
  24606. Ideally I'd like to say:
  24607.     set timeX to current date
  24608.     tiemeX as string
  24609.     is timeX contains "PM" then
  24610.        is timeX contains "12:00" then
  24611.            restart
  24612.        end if
  24613.     end if
  24614.  
  24615. BUT, I can't change the date to string format, so I can't do any
  24616. operations on it.
  24617.  
  24618. Any help would be appreciated.
  24619.  
  24620.  
  24621.  
  24622.  
  24623. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  24624. Bill Russell
  24625.   bill.russell@pt.teradyne.com
  24626.   617-422-2362 (voice)
  24627.   617-422-2240 (FAX)
  24628. =========================================================================
  24629. Date:         Tue, 22 Nov 1994 14:43:40 -0800
  24630. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24631. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24632. From:         "Roy S. Rapoport" <rsr@BERKSYS.COM>
  24633. Subject:      Re: Date
  24634.  
  24635. Bill wrote:
  24636.  
  24637. > it. Ideally I'd like to say:
  24638. >     set timeX to current date
  24639. >     tiemeX as string
  24640. >     is timeX contains "PM" then
  24641. >        is timeX contains "12:00" then
  24642. >            restart
  24643. >        end if
  24644. >     end if
  24645. >
  24646. > BUT, I can't change the date to string format, so I can't do
  24647. > any operations on it.
  24648.  
  24649. Maybe I'm rustier than I thought (I'm currently not doing AS because I've only
  24650. got 12 Megs of RAM :( ), but the second line, the 'timeX as string', doesn't
  24651. it just return timeX as a string, rather than change its type?
  24652.  
  24653. You might want to try changing that line to 'set timeY to timeX as a string'
  24654. and see if it makes a difference ...
  24655.  
  24656. -roy
  24657. =========================================================================
  24658. Date:         Tue, 22 Nov 1994 16:41:02 -0600
  24659. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24660. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24661. From:         David Messina <messina@MCS.COM>
  24662. Subject:      Re: Scriptable Finder & 7.1 ?
  24663.  
  24664. >The Finder version is only 7.1.4, not 7.5. It's the same Finder that's been
  24665. >shipping with all the Power Macs.
  24666.  
  24667. >Yes, I believe it is safe to use with 7.1.
  24668.  
  24669. To confirm -- I have been running Finder 7.1.4 on a 7100 since I've had my
  24670. PowerMac; no problems.  So go to it if that's the configuration you're
  24671. looking for.
  24672.  
  24673.  
  24674. --
  24675.  
  24676. David Messina
  24677. messina@mcs.com
  24678. =========================================================================
  24679. Date:         Tue, 22 Nov 1994 15:44:26 -0700
  24680. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24681. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24682. From:         Gene Foust <gfoust@BALL.COM>
  24683. Subject:      Re: Date
  24684.  
  24685. I cleaned up what I think were typos and the following works for me:
  24686.  
  24687. set timeX to current date
  24688. set timeX to timeX as string
  24689. if timeX contains "PM" then
  24690.         if timeX contains "12:00" then
  24691.                 restart
  24692.         end if
  24693. end if
  24694.  
  24695.  ------ From: Macintosh Scripting Systems, Tue, Nov 22, 1994 ------
  24696.  
  24697. Hi: I'm new to Applescript. Just as a test case, I tried to write a small
  24698. program to reboot a server every night at (say) midnight. I ran into a
  24699. problem... I can't convert a date to a script so I can look at it.
  24700. Ideally I'd like to say:
  24701.     set timeX to current date
  24702.     tiemeX as string
  24703.     is timeX contains "PM" then
  24704.        is timeX contains "12:00" then
  24705.            restart
  24706.        end if
  24707.     end if
  24708.  
  24709. BUT, I can't change the date to string format, so I can't do any
  24710. operations on it.
  24711.  
  24712. Any help would be appreciated.
  24713.  
  24714.  
  24715.  
  24716.  
  24717. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  24718. Bill Russell
  24719.   bill.russell@pt.teradyne.com
  24720.   617-422-2362 (voice)
  24721.   617-422-2240 (FAX)
  24722. =========================================================================
  24723. Date:         Wed, 23 Nov 1994 11:51:00 +1300
  24724. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24725. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24726. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  24727.               NZ" <LDO@WAIKATO.AC.NZ>
  24728. Subject:      EightyLister update
  24729.  
  24730. I've just dropped a new version of EightyLister in the incoming folder on
  24731. Gaea. It now lets you get information about classes and event parameters,
  24732. and also there's the option to get dynamic terminology from running
  24733. applications, as I mentioned before.
  24734.  
  24735. I did have to make a change to the format of the returned data. This used to
  24736. be just a list of information about events: it's now a record, with one or
  24737. two fields, one field for the list of event information, the other for the
  24738. list of class information (details are in the dictionary, as you would expect).
  24739. You'll have to modify your existing scripts accordingly.
  24740.  
  24741. Enjoy. And as always, let me know of any problems, suggestions for improvement
  24742. etc.
  24743.  
  24744. Lawrence D'Oliveiro                       fone: +64-7-856-2889
  24745. Computer Services Dept                     fax: +64-7-838-4066
  24746. University of Waikato            electric mail: ldo@waikato.ac.nz
  24747. Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
  24748. =========================================================================
  24749. Date:         Tue, 22 Nov 1994 18:00:04 -0500
  24750. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24751. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24752. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  24753. Subject:      I NEEEED FaceSpan 1.0.1
  24754.  
  24755. I need the memory leak bug fix found in FaceSpan 1.0.1.  The only problem
  24756. is I can't find it anywhere.  APDA does not offer an upgrade other than to
  24757. buy the entire package again.  Even then they would not guarentee what
  24758. version of FaceSpan I would get.  Is it anywhere out there in cyberspace??
  24759. Thanks in advance
  24760. Mark Hadfield.
  24761.  
  24762. Mark Hadfield
  24763. hadfield@sickkids.on.ca
  24764. The Hospital For Sick Children
  24765. =========================================================================
  24766. Date:         Wed, 23 Nov 1994 13:07:00 +1300
  24767. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24768. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24769. From:         "Lawrence D'Oliveiro, Waikato University, Hamilton,
  24770.               NZ" <LDO@WAIKATO.AC.NZ>
  24771. Subject:      Re: Scriptable Finder & 7.1 ?
  24772.  
  24773. David Messina <messina@MCS.COM> writes:
  24774.  
  24775. >>The Finder version is only 7.1.4, not 7.5. It's the same Finder that's been
  24776. >>shipping with all the Power Macs.
  24777. >
  24778. >>Yes, I believe it is safe to use with 7.1.
  24779. >
  24780. >To confirm -- I have been running Finder 7.1.4 on a 7100 since I've had my
  24781. >PowerMac; no problems.  So go to it if that's the configuration you're
  24782. >looking for.
  24783.  
  24784. Unfortunately, Power Macs don't run 7.1. The earliest system they can run
  24785. is 7.1.2.
  24786. =========================================================================
  24787. Date:         Tue, 22 Nov 1994 19:14:33 -0500
  24788. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24789. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24790. From:         Mark Hadfield <hadfield@RESUNIX.RI.SICKKIDS.ON.CA>
  24791. Subject:      Scripter's Dream Software Combo (was Re: FaceSpan 1.0.1)
  24792.  
  24793. >I got FaceSpan 1.0.1 with my recent purchase of the AppleScript Developer's
  24794. >Kit.  I just started developing in FaceSpan, which I like very much.  I
  24795. >suppose if I'd started with version 1.0 I wouldn't like it quite so much,
  24796. >if your bug list is any indication!
  24797. >
  24798. >I haven't had any major problems yet, aside from an irritating problem with
  24799. >the FaceSpan app becoming hidden when I activate the Finder inside a
  24800. >handler.  The handler exits with the Finder still the foreground
  24801. >application.  I don't want FaceSpan to become hidden; I just want it to go
  24802. >to the background, with the document window still open.  Very peculiar
  24803. >problem!
  24804. >
  24805. >Otherwise, my projects have run rather flawlessly.  I do have a couple of
  24806. >gripes about the interface for scripts.  There really should be a
  24807. >source-level debugger in the thing. I'd like to be able to move the cursor
  24808. >directly to the first line of a handler.  I'd like to be able to watch
  24809. >variables as scripts execute, set breakpoints, you know, the usual stuff.
  24810. >Right now I write my scripts as separate chunks of routines in the Apple
  24811. >Script Editor, debug them through repeated execution, and then move them
  24812. >back into FaceSpan when they're solid enough.
  24813. >
  24814. >I tried ScriptWizard, but it's abominable.  Great ideas, but incredibly
  24815. >INCREDIBLY slow! I can't write a script longer than a single window-full
  24816. >before it becomes too slow to use interactively.
  24817. >
  24818. >Jeff Johnson
  24819. >
  24820. Try Scripter when it comes out. It sounds awesome.  I read some preliminary
  24821. information about it in MacWeek.  It sounds like the first industrial
  24822. strength applescript editor.  If only an interface tool like FaceSpan could
  24823. be integrated with a powerful editor like Scripter.  That would be
  24824. scripting heaven!!!
  24825.  
  24826. P.S. Hopefully we won't have to wait until they both become OpenDoc parts!!!
  24827.  
  24828. Mark Hadfield
  24829. hadfield@sickkids.on.ca
  24830. The Hospital For Sick Children
  24831. =========================================================================
  24832. Date:         Tue, 22 Nov 1994 16:59:27 -0800
  24833. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24834. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24835. From:         Kevin Purcell <kevinpu@ATM.COM>
  24836. Subject:      Re: Scripter's Dream Software Combo (was Re: FaceSpan 1.0.1)
  24837.  
  24838. >Try Scripter when it comes out. It sounds awesome.  I read some preliminary
  24839. >information about it in MacWeek.  It sounds like the first industrial
  24840. >strength applescript editor.  If only an interface tool like FaceSpan could
  24841. >be integrated with a powerful editor like Scripter.  That would be
  24842. >scripting heaven!!!
  24843. >
  24844. >P.S. Hopefully we won't have to wait until they both become OpenDoc parts!!!
  24845.  
  24846. And there's the "soon to ship" ScriptDebugger too (sorry, Cal!).
  24847.  
  24848. What I really need are "industrial strength" tools that support source
  24849. level debugging and source code control.
  24850.  
  24851. Source level debugging is essential and I find it difficult to beleive why
  24852. the API didn't support this form the very start. Even today it seems to be
  24853. a pretty well held secret about how one does this (from the Scripting API
  24854. point of view).
  24855.  
  24856. Source code control is the other requirement. All serious developers use
  24857. source code control and on the Mac they use (have to use :-) Projector
  24858. either via MPW or SourceServer.
  24859.  
  24860. If you are a developer of a script editor then make sure your editor
  24861. respects 'ckid' resources from Projector. THINK C, Pascal, CodeWarrior,
  24862. Resourcerer, BBEdit and all the other development tools can do so and so
  24863. should you. Some of us work in teams (some to produce commericial products)
  24864. and we Project all of the source including example scripts. I don't want to
  24865. accidently nuke a file that is checked out read only just because the
  24866. editor is too damn dumb to check for the 'ckid'.
  24867.  
  24868. About the only way to do this at the moment is to use MPW, SourceServer and
  24869. ScriptServer, but this is a little incovienient for those with an
  24870. interactive turn of mind.
  24871.  
  24872. When will Loic turn out an ObjectMaster for AppleScript!
  24873.  
  24874. Maybe I should try Frontier? Does Frontier support Projected files, John?
  24875.  
  24876. Kevin Purcell      Attachmate Corp        (206) 649-6489
  24877. kevinpu@atm.com    Seattle dBug Mac Developers SIG organizer
  24878. =========================================================================
  24879. Date:         Sat, 5 Nov 1994 12:48:02 U
  24880. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24881. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24882. From:         INBOUND <INBOUND@AMGENGATE.AMGEN.COM>
  24883. Subject:      Please Resend
  24884.  
  24885. Mail*Link(r) SMTP               RE>Testing note to my seee
  24886. What do you mean cold????? 72??? Are you nuts??? That's beautiful!!!!
  24887.  
  24888. ------------------ RFC822 Header Follows ------------------
  24889. Received: by amgengate.amgen.com with SMTP;5 Nov 1994 12:25:20 -0800
  24890. Received: from ehsct7.envmed.rochester.edu by ehsct7.envmed.rochester.edu
  24891.  (PMDF V4.3-13 #6313) id <01HJ4IC5P5C6000CAC@ehsct7.envmed.rochester.edu>;
  24892. Sat,
  24893.  05 Nov 1994 15:21:28 -0500 (EST)
  24894. Date: Sat, 05 Nov 1994 15:21:28 -0500 (EST)
  24895. From: LISA_O@ehsct7.envmed.rochester.edu
  24896. Subject: Re: Testing note to my seee
  24897. To: Victoria_Hickey@amgengate.amgen.com
  24898. Message-id: <01HJ4IC5P5C8000CAC@ehsct7.envmed.rochester.edu>
  24899. X-VMS-To: IN%"Victoria_Hickey@amgengate.amgen.com"
  24900. X-VMS-Cc: LISA_O
  24901. MIME-version: 1.0
  24902. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  24903. Content-transfer-encoding: 7BIT
  24904. =========================================================================
  24905. Date:         Tue, 22 Nov 1994 17:48:42 -0800
  24906. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24907. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24908. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  24909. Subject:      Re: AppleScripting Tools
  24910.  
  24911. >Hi,
  24912. >
  24913. >I'm thinking of getting a copy of a scripting tool such as FrontMost,
  24914. >ScriptWizard, TableServer or others. I need some recommandation on what to
  24915. >get.
  24916.  
  24917. The above is not a "choose one of these" sort of thing.
  24918.  
  24919. ScriptWizard (which I've only used briefly in a demo version) is an
  24920. alternative script editor, plus debugging tools.
  24921.  
  24922. FrontMost is primarily a builder of user interfaces (and script-based
  24923. applications which use those interfaces).  The work of the Frontmost-based
  24924. app is done in (a large) script, which is edited within Frontmost as if
  24925. there were a smaller script attached to each UI object.  FaceSpan is the
  24926. same thing under its new and current name.
  24927.  
  24928. TableServer just implements a simple (and rather nice for the purpose)
  24929. text-based scriptable database.
  24930.  
  24931.  
  24932. >... is there a newgroup which will discuss this topic.
  24933.  
  24934. This is as close at you'll come.  Periodically the idea of starting a
  24935. newsgroup surfaces.  It floats around for a while and then, thankfully,
  24936. sinks again.
  24937.  
  24938.    --John
  24939.  
  24940. --
  24941. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  24942. =========================================================================
  24943. Date:         Tue, 22 Nov 1994 17:48:47 -0800
  24944. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24945. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  24946. From:         "John W. Baxter" <jwbaxter@OLYMPUS.NET>
  24947. Subject:      Re: Date
  24948.  
  24949. >Hi: I'm new to Applescript. Just as a test case, I tried to write a small
  24950. >program to reboot a server every night at (say) midnight. I ran into a
  24951. >problem... I can't convert a date to a script so I can look at it.
  24952.  
  24953. First, I probably wouldn't convert to a string and then look for "12:00"
  24954. and "PM" (I certainly wouldn't look for "PM", since I have my Mac set for
  24955. 24 hour time representation).  But if you must, you can do so using two (or
  24956. three) of the Scripting Additions in the GTQ Scripting Library
  24957.  
  24958. current date in seconds
  24959.    returns what it says, in seconds since Jan 1, 1904 began
  24960.  
  24961. time string for nn
  24962. time string for nn with seconds
  24963.    returns what it says, given seconds since Jan 1, 1904 as above.
  24964.  
  24965. date string for nn
  24966. date string for nn in short format/abbreviated format/long format
  24967.    returns what it says, given seconds since Jan 1, 1904, in the format you
  24968. specify out of that list.
  24969.  
  24970. But...if you look for "12:00" and "PM", you might "miss", if the system
  24971. happens to be so tied up with something at midnight that your script
  24972. doesn't get time during the first minute of the day.
  24973.  
  24974. I'd probably do something like
  24975.  
  24976. property priorDate: ""
  24977.  
  24978. on run
  24979.    -- stuff to set things up, which might be empty or might set priorDate
  24980. end run
  24981.  
  24982. on idle
  24983.    set today to date string for (current date in seconds)
  24984.    if priorDate is not today then
  24985.       if priorDate is "" then
  24986.           copy today to priorDate
  24987.       else
  24988.           copy today to priorDate
  24989.           tell application "Finder" to restart
  24990.       end if
  24991.     return n -- pick a suitable number of seconds between calls to your script
  24992. end idle
  24993.  
  24994. on quit
  24995.     continue quit
  24996. end quit
  24997.  
  24998. This would be saved as a stay-open script application, probably in the
  24999. startup items folder, but perhaps elsewhere to be launched by something at
  25000. the end of normal operations for the day.
  25001.  
  25002.  
  25003. The above is untested.  Other solutions exist.  [Since I have Frontier
  25004. running full time, I would use a Frontier Scheduler Suite task to do the
  25005. job.]
  25006.  
  25007.    --John
  25008.  
  25009. --
  25010. jwbaxter@pt.olympus.net (John W. Baxter)  Port Ludlow, WA
  25011. =========================================================================
  25012. Date:         Tue, 22 Nov 1994 20:53:10 -0500
  25013. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25014. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25015. From:         Deirdre Saoirse-Savino <Deeny3@AOL.COM>
  25016. Subject:      Re: DayDoubler (humor)
  25017.  
  25018. Now now, those of us on the Day-to-Day Calendar team all knew about shrinking
  25019. and expanding time.
  25020.  
  25021. (For those who haven't seen the product, times during the day "expand" or
  25022. "contract" with the middle 1/2 of the window full-size time slots).
  25023.  
  25024. _Deirdre (dead last of the programming credits)
  25025. =========================================================================
  25026. Date:         Tue, 22 Nov 1994 17:38:27 U
  25027. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25028. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25029. From:         Customer Support <info@GBI.COM>
  25030. Subject:      Re(2): RE> PowerTalk and ApplescrI
  25031.  
  25032. Owen,
  25033.  
  25034.  
  25035. Please give us a call and we'll make sure your refund is processed
  25036. immediately. We apologize for any problems you may have experienced with
  25037. TableIt! on a IIsi.
  25038.  
  25039.  
  25040. GBI, Inc.
  25041. =========================================================================
  25042. Date:         Tue, 22 Nov 1994 22:18:11 +0000
  25043. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25044. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25045. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  25046. Subject:      Yet another pause problem
  25047.  
  25048. If y'all remember, awhile back I had a "joke" script I was writting for a
  25049. friend that does nothing but look like there's a problem.Well, we've
  25050. decided to expand it, and we need it to appear as though it is doing
  25051. something for awhile, and then continue with the joke dialogs. Here's the
  25052. script:
  25053.  
  25054.         global whatsNext
  25055.  
  25056.         on run
  25057.          display dialog "Installing Root Folder into your System..."
  25058. buttons {"Cancel"}
  25059.                 set i to 1
  25060.                 repeat with i from 1 to 5
  25061.                 i + 1
  25062.                 end repeat
  25063.          set whatsNext to "pauseDone"
  25064.          Cont()
  25065.         end run
  25066.  
  25067.         on Cont()
  25068.          if whatsNext is "pauseDone" then
  25069.                  doRest()
  25070.           else
  25071.                         set whatsNext to "pauseDone"
  25072.          end if
  25073.                end Cont
  25074.         on doRest()
  25075.        [...this is fine...]
  25076.         else
  25077.                 [...]
  25078. end doRest
  25079.  
  25080.  
  25081. All this does is is sit on the first dialog. It doesn't even have the
  25082. little spinning beachball. It just sits there and does nothing. Can anyone
  25083. help me out here? TIA,
  25084. -jaeson the lost soul
  25085.  
  25086. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  25087.          www server: http://josaiah.sewanee.edu/          )
  25088. =========================================================================
  25089. Date:         Tue, 22 Nov 1994 21:07:37 -0800
  25090. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25091. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25092. From:         "Bruce B. Lacey (Bruce B. Lacey)" <blacey@CERF.NET>
  25093. Subject:      Re: Date
  25094.  
  25095. >Hi: I'm new to Applescript. Just as a test case, I tried to write a small
  25096. >program to reboot a server every night at (say) midnight. I ran into a
  25097. >problem... I can't convert a date to a script so I can look at it.
  25098. >Ideally I'd like to say:
  25099. >    set timeX to current date
  25100. >    tiemeX as string
  25101. >    is timeX contains "PM" then
  25102. >       is timeX contains "12:00" then
  25103. >           restart
  25104. >       end if
  25105. >    end if
  25106. >
  25107. >BUT, I can't change the date to string format, so I can't do any
  25108. >operations on it.
  25109. >
  25110. >Any help would be appreciated.
  25111.  
  25112. Keep in mind that you can retrieve properties of a date value...
  25113. For example:
  25114.  
  25115.     set timeX to time of current date
  25116.         --returns the number of seconds since midnight
  25117.  
  25118. you may consider an idle handler that the first time it is invoked, it
  25119. calculates the time to mid-night and returns a wait until the mid-night as:
  25120.  
  25121. return 86400 - (time of the (current date))
  25122.  
  25123. relinquishing the CPU until it needs to perform the restart...  ;-)
  25124.  
  25125. --When the restart script first receives a run event, set the restart flag to
  25126. --false
  25127. on run
  25128.    global restart
  25129.    set restart to false
  25130. end run
  25131.  
  25132. --When the idle handler is invoked, restart if this is the second time to the
  25133. --idle handler, otherwise return the number of seconds until midnight
  25134. on idle
  25135.         global restart
  25136.         if restart then
  25137.            tell application "Finder" to restart{}
  25138.         else
  25139.            set restart to true
  25140.            return 86400 - (time of the (current date))
  25141.         end if
  25142. end idle
  25143.  
  25144. Good luck.
  25145. Bruce.
  25146.  
  25147. P.S.  I have not tested this...
  25148. =========================================================================
  25149. Date:         Tue, 22 Nov 1994 23:46:49 -0600
  25150. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25151. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25152. From:         Fred Terry <pfterry@LKS.CSI.COM>
  25153. Subject:      Re: EightyLister update
  25154. In-Reply-To:  Your message of "Wed, 23 Nov 94 11:51:00 +1300"
  25155.  
  25156. >I've just dropped a new version of EightyLister in the incoming folder on
  25157. >Gaea. It now lets you get information about classes and event parameters,
  25158. >and also there's the option to get dynamic terminology from running
  25159. >applications, as I mentioned before.
  25160.  
  25161. This can now be found in
  25162.  
  25163. ftp://gaea.kgs.ukans.edu/applescript/osaxen/EightyLister.hqx
  25164.  
  25165. pf
  25166. =========================================================================
  25167. Date:         Wed, 23 Nov 1994 01:09:23 -0500
  25168. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25169. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25170. From:         Tom Pollard <pollard@CHEM.COLUMBIA.EDU>
  25171. Subject:      Re: wait for end of application
  25172.  
  25173. Axel Wilzopolski <aw@IX.DE> asked:
  25174. > I want an AppleScript-application to start another application and
  25175. > after that waiting for the termination of that application before
  25176. > any other thing is done in the applescript.
  25177.  
  25178. I seem to remember that an extension/app/whatever was recently put on
  25179. the info-mac archive that will run a script at the launch and/or at the
  25180. quitting of an application.  If you want to avoid having your driver
  25181. script spin it's wheels while waiting for an app to quit, maybe you can
  25182. use this product to have the app launch a script that just sends a
  25183. signal back to your main script.
  25184.  
  25185. I didn't download this thing myself, unfortunately.  Hope this vague
  25186. description is useful anyway.
  25187.  
  25188. Cheers,
  25189.  
  25190. Tom
  25191.  
  25192. -------------------------------------------------------------------------
  25193. W. Thomas Pollard                               Department of Chemistry
  25194. pollard@cucbs.chem.columbia.edu                 Columbia University
  25195. -------------------------------------------------------------------------
  25196. =========================================================================
  25197. Date:         Wed, 23 Nov 1994 00:19:55 +0000
  25198. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25199. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25200. From:         Kyraden <Jaeson.M.Engle@JOSAIAH.SEWANEE.EDU>
  25201. Subject:      Re: wait for end of application
  25202.  
  25203. >I seem to remember that an extension/app/whatever was recently put on
  25204. >the info-mac archive that will run a script at the launch and/or at the
  25205. >quitting of an application.  If you want to avoid having your driver
  25206. >script spin it's wheels while waiting for an app to quit, maybe you can
  25207. >use this product to have the app launch a script that just sends a
  25208. >signal back to your main script.
  25209. >
  25210. >I didn't download this thing myself, unfortunately.  Hope this vague
  25211. >description is useful anyway.
  25212. >
  25213. >Cheers,
  25214. >
  25215. >Tom
  25216. >
  25217.  
  25218. I believe I found this on gaea. It's called ScriptSync (sp?). It does
  25219. things very nicely. Mainly I use it for launching Stuffit Expander when I
  25220. launch Anarchie, but it should do the trick...
  25221.  
  25222. -J
  25223.  
  25224. | Jaeson M. Engle    ||    jme@josaiah.sewanee.edu  |
  25225.          www server: http://josaiah.sewanee.edu/          )
  25226. =========================================================================
  25227. Date:         Tue, 22 Nov 1994 22:23:44 -0800
  25228. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25229. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25230. From:         "Allan R. Crump Jr" <jhhw@CRL.COM>
  25231. Subject:      Get1Resource
  25232.  
  25233. I am reading the resource map from my preference file by using the
  25234. Get1Resource function described inside Macintosh.
  25235.  
  25236. This function returns a handle to the data, or so I thought. The data is
  25237. actually a WIND resource, or window record resource that I'd like to
  25238. modify the top.right positioning of the window so that next time the
  25239. application does a GETNEWWINDOW (from the resource) it reads the last
  25240. known rect from the resource.
  25241.  
  25242. After reading in the handle, I believed I could just do a RESOURCECHANGED
  25243. to update the file.  Upon doing so, it completely destroyed my WIND resource.
  25244.  
  25245. Is there something I should be aware of ?
  25246. =========================================================================
  25247. Date:         Wed, 23 Nov 1994 01:50:45 -0500
  25248. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25249. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25250. From:         "M. Brent Sleeper" <bsleeper@FLIGHTPATH.COM>
  25251. Subject:      Advantages of ScriptTools v. Apple's osaxen
  25252.  
  25253. Howdy,
  25254.  
  25255. I've been using Matt Alldritt's File IO osax for some time, as the version
  25256. of AppleScript I had didn't include any comparable commands. However, now
  25257. that I have System 7.5, I have the option of using some new osaxen included
  25258. with the System. I was wondering if anyone out there would pontificate on
  25259. the subject of:
  25260.  
  25261. Matt Alldritt's ScriptTools File IO and Choose Files & Folders osaxen
  25262. v.
  25263. Apple's Read/Write Commands, Choose File, and New File osaxen
  25264.  
  25265. Thanks! I'm looking forward to a highly partisan battle royale...
  25266.  
  25267. Brent Sleeper
  25268.  
  25269.  
  25270. --
  25271. M. Brent Sleeeper -- bsleeper@flightpath.com
  25272.   Flightpath Communications -- info@flightpath.com
  25273. =========================================================================
  25274. Date:         Wed, 23 Nov 1994 09:53:02 -0700
  25275. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25276. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25277. From:         John Stanley <John_Stanley@QMGATE.CORP.APPLE.COM>
  25278. Subject:      How to find number of items
  25279.  
  25280. I have searched in vain to find an easy way to find out how many items are in
  25281. a folder.   Using "information window" I can virtually everything else that
  25282. comes up in a standard Get Info window, but not the number of items.
  25283. Likewise, "folder" does not have any elements defined that tell you how many
  25284. items in total there are - you can get a list of the top level items and
  25285. count those, but not the ones nested within sub folders.
  25286.  
  25287. I could traverse the folder and count all the items as I go, but I wanted to
  25288. put up a progress bar as I was doing the work because traversing the folder
  25289. is itself slow.
  25290.  
  25291. Any ideas?
  25292.  
  25293. John
  25294. =========================================================================
  25295. Date:         Wed, 23 Nov 1994 08:51:26 GMT
  25296. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25297. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25298. From:         Paul G Smith <paul@CTALK.EXNET.COM>
  25299. Organization: commstalk, & Full Moon Software
  25300. Subject:      Re: Scripter's Dream Software Combo (was Re: FaceSpan 1.0.1)
  25301.  
  25302. In Regards to your letter <199411230014.AA01414@exnet.com>:
  25303. > >
  25304. > >I tried ScriptWizard, but it's abominable.  Great ideas, but incredibly
  25305. > >INCREDIBLY slow! I can't write a script longer than a single window-full
  25306. > >before it becomes too slow to use interactively.
  25307. > >
  25308.  
  25309. We've heard the complaints about SW performance. Version 1.1 will ship
  25310. using a different text editing engine, which will improve the performance.
  25311. If you are a registered SW user and you'd like to beta test v1.1 please
  25312. send email to "sw.test@ctalk.exnet.com".
  25313.  
  25314.  
  25315. best regards, Paul
  25316.  
  25317. +------------------------------------------------------------------+
  25318. | Paul G Smith, Full Moon Software        || UK ph: +44 1727 844232
  25319. | PO Box 116, ST ALBANS, Herts AL1 2RL UK ||   fax: +44 1727 856139
  25320. | & Full Moon Software, Inc               || US ph: 408 253 7199
  25321. | P O Box 700237, SAN JOSE, CA 95170 USA  ||   fax: 408 252 2378
  25322. =========================================================================
  25323. Date:         Wed, 23 Nov 1994 14:12:04 +0000
  25324. Reply-To:     Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25325. Sender:       Macintosh Scripting Systems <MACSCRPT@DARTCMS1.DARTMOUTH.EDU>
  25326. From:         Nicolas Williams <nwilliam@CAMBRIDGE.SCR.SLB.COM>
  25327. Subject:      Scriptable Image Converter
  25328.  
  25329. Could someone point me in the direction of an image utility that will take
  25330. PICT format graphics and convert them to GIF format. The utility must be
  25331. scriptable.
  25332.  
  25333. Thanks,
  25334.  
  25335. Nic.
  25336.  
  25337. ________________________________________